Binary Trees and Binary Search Trees: Hierarchical Data
Master tree traversal (inorder, preorder, postorder), BST operations, and when trees outperform other data structures.
Master tree traversal (inorder, preorder, postorder), BST operations, and when trees outperform other data structures.
Apply masks, shifts, and popcount patterns safely. Learn how integer width, signedness, language rules, and overflow affect bit operations.
Learn five coding interview patterns, derive constraints before choosing one, and practice each with a recognition problem, variation, and mixed exercise.
Compare counting sort at O(n + k) with radix sort at O(d(n + b)), including stable digit passes, range costs, and signed-integer handling.
Explore search algorithm variants: depth-limited search for bounded recursion, and bidirectional search for O(b^d/2) complexity improvement.
Learn depth-limited search (DLS) for handling infinite state spaces with a depth bound, and how it relates to iterative deepening.
Learn Dijkstra's algorithm for single-source shortest paths in graphs with non-negative edge weights, including implementations and trade-offs.
Learn divide and conquer through merge sort, quicksort, and binary search, with recurrences that show how subproblem costs add up.
Apply dynamic programming to tree and graph structures using DFS-based state propagation for optimal subtree and path calculations.
Learn how to identify optimal substructure, define DP state variables, and formulate recurrence relations correctly.