Algorithm Spices
latest
Preface
Data Structure
LeetCode Tags
LeetCode Template
Patterns for Coding Questions
1. Sliding Window
2. Two Points
3. Fast & Slow pointers
4. Merge Intervals
5. Cyclic Sort
6. In-place Reversal of a LinkedList
7. Tree Breadth First Search
8. Tree Depth First Search
9. Two Heaps
9.1. Find the Median of a Number Stream (medium)
9.2. Sliding Window Median (hard)
9.3. Maximize Capital (hard)
9.4. Problem Challenge 1 - Next Interval (hard)
10. Subsets
11. Modified Binary Search
12. Bitwise XOR
13. Top ‘K’ Elements
14. K-way merge
15. 0/1 Knapsack (Dynamic Programming)
16. Topological Sort (Graph)
17. Miscellaneous
Algorithm Spices
Docs
»
Patterns for Coding Questions
»
9. Two Heaps
Edit on GitHub
9. Two Heaps
¶
Contents:
9.1. Find the Median of a Number Stream (medium)
9.2. Sliding Window Median (hard)
9.3. Maximize Capital (hard)
9.4. Problem Challenge 1 - Next Interval (hard)