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
- Lesson 115Big-O: time complexityNot started
- Lesson 116Space complexity, best and worst case, amortised costNot started
- Lesson 117The 7-step problem-solving methodNot started
- Lesson 118Arrays: in-place changes, reversing, rotatingNot started
- Lesson 119Matrix traversalNot started
- Lesson 120Strings: building, counting charactersNot started
- Lesson 121Sorting and custom comparatorsNot started
- Lesson 122Hashing with Map and SetNot started
- Lesson 123Two pointersNot started
- Lesson 124Fast and slow pointersNot started
- Lesson 125Sliding window: fixed sizeNot started
- Lesson 126Sliding window: variable sizeNot started
- Lesson 127Prefix sumsNot started
- Lesson 128StacksNot started
- Lesson 129QueuesNot started
- Lesson 130Monotonic stackNot started
- Lesson 131Binary searchNot started
- Lesson 132Binary search on the answerNot started
- Lesson 133Linked listsNot started
- Lesson 134RecursionNot started
- Lesson 135BacktrackingNot started
- Lesson 136Trees: depth-first searchNot started
- Lesson 137Trees: breadth-first searchNot started
- Lesson 138Binary search treesNot started
- Lesson 139Heaps: build a MinHeapNot started
- Lesson 140Heaps: top-k, merging and mediansNot started
- Lesson 141Graphs: adjacency lists, BFS and DFSNot started
- Lesson 142Topological sort and union-findNot started
- Lesson 143Dijkstra's shortest pathNot started
- Lesson 144IntervalsNot started
- Lesson 145Greedy algorithmsNot started
- Lesson 146Dynamic programming: 1DNot started
- Lesson 147Dynamic programming: 2D, knapsack, LIS, LCSNot started
- Lesson 148TriesNot started
- Lesson 149Bit manipulationNot started
- Lesson 150Timed mixed practiceNot started