$ cd ~/learn/dsa
Data Structures & Algorithms
Complexity, core data structures, sorting, searching, recursion, DP, greedy and graph algorithms.
CS Fundamentals/11 Lessons
Lesson 01 · 5 min read
Complexity Analysis
Big O, Omega and Theta, time and space complexity, amortized analysis and the Master Theorem for recurrences.
Lesson 02 · 5 min read
Arrays and Strings
Static and dynamic arrays, two pointers, sliding window, prefix sums, Kadane's algorithm and core string techniques.
Lesson 03 · 5 min read
Linked Lists
Singly, doubly and circular linked lists, fast and slow pointers, reversal, cycle detection and classic interview problems.
Lesson 04 · 4 min read
Stacks and Queues
Stack and queue operations, deque, circular queue, monotonic stack and queue, and expression evaluation.
Lesson 05 · 5 min read
Hashing
Hash tables, hash functions, collision resolution with chaining and open addressing, load factor, rehashing and hashing patterns.
Lesson 06 · 6 min read
Trees
Binary trees, traversals, binary search trees, balanced trees like AVL and red-black, lowest common ancestor and segment trees.
Lesson 07 · 5 min read
Heaps and Tries
Binary heaps, heapify, heap sort, top-k and median patterns, plus tries for prefix search and autocomplete.
Lesson 08 · 6 min read
Graphs
Graph representations, BFS and DFS, topological sort, shortest paths with Dijkstra and Bellman-Ford, MST and union-find.
Lesson 09 · 7 min read
Sorting and Searching
Comparison and non-comparison sorts, stability, merge sort, quick sort, counting and radix sort, binary search and its variants.
Lesson 10 · 6 min read
Recursion and Backtracking
How recursion works, base cases, the call stack, tail recursion, divide and conquer, and backtracking for subsets, permutations and constraint problems.
Lesson 11 · 6 min read
Dynamic Programming and Greedy
Optimal substructure, memoization vs tabulation, classic DP patterns like knapsack and LCS, and when greedy algorithms are correct.