Skip to the content

Part 10 of 25

Data Structures and Algorithms

Data structures and algorithms (DSA) are the core of most coding tests: online assessments on HackerRank or Codility, and live rounds in CoderPad. This part teaches patterns, not memorised answers. Each lesson explains one idea in plain words, then solves the classic problems for that pattern step by step: first the simple (brute force) solution, then the better one, with the reasoning, the TypeScript code, and the time and memory cost. Problem names match LeetCode and NeetCode, so you can practise each one there. Every solution in this part was run against test cases before being included. Work through it slowly, and re-solve every problem from a blank file a few days later.

Your progress

0%0 of 36 lessons complete

A lesson is complete when its quiz and all three practice levels are passed.

36 lessons in this part

  1. Lesson 115Big-O: time complexityNot started
  2. Lesson 116Space complexity, best and worst case, amortised costNot started
  3. Lesson 117The 7-step problem-solving methodNot started
  4. Lesson 118Arrays: in-place changes, reversing, rotatingNot started
  5. Lesson 119Matrix traversalNot started
  6. Lesson 120Strings: building, counting charactersNot started
  7. Lesson 121Sorting and custom comparatorsNot started
  8. Lesson 122Hashing with Map and SetNot started
  9. Lesson 123Two pointersNot started
  10. Lesson 124Fast and slow pointersNot started
  11. Lesson 125Sliding window: fixed sizeNot started
  12. Lesson 126Sliding window: variable sizeNot started
  13. Lesson 127Prefix sumsNot started
  14. Lesson 128StacksNot started
  15. Lesson 129QueuesNot started
  16. Lesson 130Monotonic stackNot started
  17. Lesson 131Binary searchNot started
  18. Lesson 132Binary search on the answerNot started
  19. Lesson 133Linked listsNot started
  20. Lesson 134RecursionNot started
  21. Lesson 135BacktrackingNot started
  22. Lesson 136Trees: depth-first searchNot started
  23. Lesson 137Trees: breadth-first searchNot started
  24. Lesson 138Binary search treesNot started
  25. Lesson 139Heaps: build a MinHeapNot started
  26. Lesson 140Heaps: top-k, merging and mediansNot started
  27. Lesson 141Graphs: adjacency lists, BFS and DFSNot started
  28. Lesson 142Topological sort and union-findNot started
  29. Lesson 143Dijkstra's shortest pathNot started
  30. Lesson 144IntervalsNot started
  31. Lesson 145Greedy algorithmsNot started
  32. Lesson 146Dynamic programming: 1DNot started
  33. Lesson 147Dynamic programming: 2D, knapsack, LIS, LCSNot started
  34. Lesson 148TriesNot started
  35. Lesson 149Bit manipulationNot started
  36. Lesson 150Timed mixed practiceNot started