DSA & Problem Solving Roadmap
Big O, arrays, trees, graphs and dynamic programming in a sensible order, with practice from your DSA sheets.
Steps
- Big O, Arrays and Hash Tables: Counting how fast code is, and the two most used tools: lists and lookup tables.
- Two Pointers and Sliding Window: Solving list problems in one pass instead of checking everything again and again.
- Sorting and Binary Search: Putting things in order, and finding things in an ordered list very quickly.
- Linked Lists, Stacks and Queues: Three simple ways to store items, and when each one is the right tool.
- Recursion and Backtracking: Solving a problem by trying choices, and stepping back when a choice cannot work.
- Trees and Binary Search Trees: Data arranged like a family tree, and the four ways to walk through it.
- Heaps and Tries: Always getting the smallest item fast, and searching words by their letters.
- Graphs: Walking Through a Network: Points joined by lines: finding paths, layers and orders.
- Graphs: Shortest Paths and Spanning Trees: Cheapest routes, and joining everything with the least total cost.
- Greedy Methods and Intervals: Always taking the best-looking choice, and when that is really correct.
- Dynamic Programming: Solving a big problem from small answers that you remember instead of recomputing.
- Bit Tricks and Maths: Working directly with the ones and zeros of a number.
- Putting It Together: Interview Practice: A routine for practising problems and getting better at them.