AVL Trees: A Hands-On Guide to Rotations
Learn AVL insertions and deletions through height and balance-factor traces, then use a compact Python implementation and compare tree choices.
Learn AVL insertions and deletions through height and balance-factor traces, then use a compact Python implementation and compare tree choices.
Understand B-trees and B+ trees for disk-based storage, database indexing, and efficient range queries with O(log n) operations.
Learn the Bellman-Ford algorithm for single-source shortest paths including negative edge weights and negative cycle detection.
Master asymptotic analysis, Big O/Theta/Omega notation, and how to analyze time and space complexity of algorithms systematically.
Choose binary search for monotone predicates and ternary search for unimodal objectives. Learn lower bounds, rotated-array search, and termination invariants.
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.