Segment Trees: Range Queries and Updates
Build segment trees for O(log n) range sum, min, max queries with lazy propagation for efficient range updates in competitive programming.
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.
Explore load balancing algorithms used in microservices including round robin, least connections, weighted, IP hash, and adaptive algorithms.
A comprehensive guide to cache eviction policies — LRU, LFU, FIFO, Random — with implementation trade-offs, decision frameworks, and real-world case studies.