Recursion and Backtracking: Patterns and Pitfalls
Master recursive thinking, base cases, call stack management, and backtracking algorithms for generating permutations and combinations.
Master recursive thinking, base cases, call stack management, and backtracking algorithms for generating permutations and combinations.
Master red-black tree properties, insertion fixup cases, and color flip mechanics. Learn when RB trees outperform AVL and when they don't.
Build segment trees for O(log n) range sum, min, max queries with lazy propagation for efficient range updates in competitive programming.
Understand skip lists as probabilistic alternatives to balanced trees, providing O(log n) search with simple implementation and lock-free variants.
Solve maximum subarray, longest substring, and subarray average problems with O(n) time using the sliding window technique.
Compare all major sorting algorithms by time complexity, space usage, stability, and practical use cases.
Learn topological sorting using DFS and Kahn's algorithm for dependency resolution in directed acyclic graphs.
Master the two pointers technique for O(1) space complexity solutions to array problems like pair sum, palindrome check, and triplet finding.
Choose a load-balancing policy by backend health, capacity, request duration, queueing, and proxy behavior, with links to focused algorithm deep dives.
Compare LRU, LFU, FIFO, and random cache eviction with a shared request trace, then review Redis's version-specific policy behavior.