The full learning path
Pick a track. Keep the thread.
Small visual steps, clear explanations, and review that keeps the thread.
Overall progress 0%
0 of 92 lessons explored
Data Structure vs Algorithm A data structure is the shape you choose for storing data, while an algorithm is the recipe that works on that data. 7 min Big O Notation Big O is a vocabulary for describing how work grows as the input gets larger. 7 min Memory, References, and Pointers Programs store values somewhere in memory. A reference is a handle that lets one part of your program reach an object stored elsewhere. 7 min Arrays and Indexes Watch contiguous memory cells light up as indexes, reads, writes, and shifting costs become visible. 5 min Singly Linked Lists Learn how nodes live apart in memory and stay connected through pointers. 4 min
Strings A string is a sequence of characters, often treated like an array with extra immutability rules. 7 min Matrices and Grids A matrix is a two-dimensional array, commonly used for grids, maps, tables, and DP states. 7 min Stacks Build a Last-In-First-Out container and see why push and pop stay constant time. 4 min Queues Follow front and rear pointers as enqueue and dequeue operations preserve FIFO order. 5 min Deque A deque supports adding and removing from both ends. 7 min
Recursion Basics A recursive function solves a problem by calling itself on a smaller problem. 7 min Sorting Basics Sorting arranges data into order, often making search and greedy decisions easier. 7 min Searching Basics Searching finds a target value or position in a collection. 7 min Binary Search Cut a sorted search space in half repeatedly while the low, mid, and high pointers move. 6 min
Trees A tree is a hierarchical structure with nodes connected by parent-child relationships. 7 min Binary Trees A binary tree is a tree where each node has at most two children. 7 min Binary Search Trees A BST keeps smaller values on the left and larger values on the right. 7 min Heaps and Priority Queues A heap keeps the highest or lowest priority item at the top. 7 min Tries A trie stores words by sharing prefixes through character nodes. 7 min
Graphs A graph represents things as nodes and relationships as edges. 7 min Graph Representation Graphs are commonly represented with adjacency lists, adjacency matrices, or edge lists. 7 min BFS Concept Breadth-first search explores nodes by distance from the start using a queue. 7 min DFS Concept Depth-first search explores one path deeply before backtracking. 7 min
Greedy Thinking A greedy algorithm makes the locally best choice and commits to it. 7 min Dynamic Programming Thinking Dynamic programming is useful when the same smaller questions appear again and again. 7 min Backtracking Thinking Backtracking explores choices, abandons invalid paths, and undoes choices when returning. 7 min Bit Manipulation Basics Bit manipulation uses binary representation directly for masks, flags, and fast arithmetic tricks. 7 min
Bubble Sort Repeatedly swap adjacent out-of-order elements until the largest values bubble right. 8 min Selection Sort Select the smallest remaining value and place it at the current position. 8 min Insertion Sort Grow a sorted prefix by inserting each new value into its correct place. 8 min Merge Sort Divide the array, sort each half, then merge sorted halves. 8 min Quick Sort Partition values around a pivot, then recursively sort both sides. 8 min Heap Sort Build a heap, then repeatedly move the max value to the end. 8 min Counting Sort Count each key, then rebuild output in key order. 8 min
Two Pointers Move two indexes through an array to shrink, expand, or compare a search region. 8 min Sliding Window Maintain a moving window and update its state as the boundary changes. 8 min Prefix Sum Store cumulative totals so range sums are answered by subtraction. 8 min Find Minimum and Maximum Track the best value seen so far while scanning the array once. 8 min Reverse Array Swap values from both ends while moving inward. 8 min Rotate Array Move elements by k positions, often using three reversals. 8 min Remove Duplicates From Sorted Array Use a write pointer to keep only the first copy of each value. 8 min
Recursion Solve a problem by reducing it to smaller versions of itself. 8 min Backtracking Build a candidate, recurse, then undo the choice when returning. 8 min Generate Subsets For each item, branch into include and exclude decisions. 8 min Generate Permutations Choose each unused value for the next position. 8 min Factorial Multiply n by the factorial of n - 1 until the base case. 8 min
Tree Traversals Visit tree nodes in preorder, inorder, postorder, or level order. 8 min BST Search Use the binary-search-tree ordering to move left or right from each node. 8 min Heap Push and Pop Maintain the heap property by bubbling values up or down. 8 min Level Order Traversal Use a queue to visit tree nodes one level at a time. 8 min Tree Height Height is one plus the maximum height of the left and right subtrees. 8 min
Breadth-First Search Visit nodes level by level with a queue. 8 min Depth-First Search Explore as far as possible before backtracking. 8 min Topological Sort Order directed acyclic graph nodes so prerequisites come first. 8 min Dijkstra Shortest Path Always expand the currently closest known node using a priority queue. 8 min Bellman-Ford Relax all edges repeatedly to handle negative weights and detect negative cycles. 8 min Floyd-Warshall Try every node as an intermediate stop between every pair of nodes. 8 min Union Find Track disjoint sets with parent pointers, path compression, and union by rank. 8 min Kruskal MST Sort edges by weight and add edges that connect different components. 8 min Prim MST Grow a tree by repeatedly adding the cheapest edge leaving the current tree. 8 min
Memoized Fibonacci Cache repeated recursive results so each state is solved once. 8 min 0/1 Knapsack For each item and capacity, choose between skipping or taking the item. 8 min Longest Increasing Subsequence Track the smallest possible tail value for increasing subsequences of each length. 8 min Longest Common Subsequence Compare prefixes of two strings and reuse overlap between states. 8 min Coin Change Build answers for smaller amounts, then extend them with each coin. 8 min
KMP String Search Precompute prefix information so mismatches skip redundant comparisons. 8 min Rabin-Karp Compare rolling hashes of fixed-size windows against the pattern hash. 8 min Trie Insert and Search Store strings as paths through character nodes. 8 min Palindrome Check Compare characters from both ends while moving inward. 8 min Valid Anagram Count characters in one string and subtract counts using the other string. 8 min First Non-Repeating Character Count frequencies, then scan again to find the first count of one. 8 min
Euclidean GCD Repeatedly replace the larger number with its remainder. 8 min Sieve of Eratosthenes Mark multiples of each prime as composite. 8 min Fast Exponentiation Square the base and consume exponent bits from right to left. 8 min Sum of Digits Repeatedly take the last digit and divide the number by ten. 8 min