Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a brute force algorithm?
Think of trying every key to unlock a door.
Define greedy algorithms.
Consider choosing the largest coins first.
What does a Brute Force algorithm do?
Think about searching through every option.
True or False: Dynamic programming only works for problems with independent sub-problems.
Consider the Fibonacci sequence.
You are tasked with finding a path through a maze. Describe how a backtracking algorithm would help solve this problem.
Consider how you’d retrace your steps in a real maze.
Create an example of a problem that could be best solved using dynamic programming and explain why other approaches might fail.
Think about packing for a trip by weight and value.
6 more questions in this section. Enroll free to practise them all.
Enroll free