Skip to content

7-Day Data Structures and Algorithms Interview Preparation Plan

Your saved questions plus a day-by-day plan. Add questions with Save to → 7-Day Job Prep on any question page.

Day-by-day plan

Day 1Complexity and arrays
  • Revise Big-O, constraints and recursion basics
  • Solve six array problems using two pointers and prefix sums
  • Practise explaining complexity aloud for each solution
  • Revise Kadane's algorithm and Dutch national flag
Day 2Strings and hashing
  • Solve five sliding window and hashing problems
  • Revise hash map internals, collisions and load factor
  • Practise anagram, substring and frequency count patterns
  • Write one solution in both Java and Python
Day 3Linked lists, stacks and queues
  • Solve reverse, merge, cycle and k-group linked list problems
  • Practise bracket matching and monotonic stack problems
  • Implement a queue using two stacks
  • Revise LRU cache design with hash map and doubly linked list
Day 4Trees and heaps
  • Write all traversals recursively and iteratively
  • Solve LCA, validate BST, diameter and level order problems
  • Solve top K, merge K lists and running median with heaps
  • Revise trie insert and search
Day 5Graphs
  • Implement BFS, DFS, Dijkstra and topological sort from memory
  • Solve islands, course schedule and shortest path in grid
  • Write Union-Find and use it for connectivity
  • Revise when to use BFS versus Dijkstra versus Bellman-Ford
Day 6Dynamic programming and greedy
  • Solve climbing stairs, house robber, coin change and LIS
  • Solve knapsack, LCS and edit distance with space optimisation
  • Practise two interval scheduling greedy problems
  • Write down state and transition for every DP problem solved
Day 7Sorting, searching and mock interview
  • Revise merge sort, quicksort and binary search variants
  • Solve two binary search on answer problems and one backtracking problem
  • Prepare three STAR stories for HR questions
  • Take a 60-minute timed mock interview and review mistakes

Frequently asked questions

Can I prepare for a Data Structures and Algorithms interview in 7 days?

Seven days is enough to revise and sharpen, not to learn from zero. Use the plan to cover each core topic once, practise questions daily and finish with a mock interview.

How do I add questions to the plan?

On any question page choose Save to → 7-Day Job Prep. Saved questions show up at the top of this page.

How many hours a day should I study?

Two to four focused hours a day works for most people: one hour of revision, one to two hours of questions, and the rest on projects or mock answers.