Placements roadmap

Dynamic programming and greedy

The questions that separate offers: spot the subproblem, write the recurrence, fill the table. 2 topics, about 18 hours.

  1. Dynamic programming

    About 12 h.

    • Go from a recursive solution to memoisation to a table
    • Solve LCS, knapsack, coin change and LIS and explain each recurrence

    Visualisers: Dynamic programming

  2. Greedy and backtracking

    About 6 h.

    • Solve interval and scheduling questions greedily and argue why it works
    • Generate subsets, permutations and N-queens placements by backtracking