Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Heap for Kth Largest
Test your understanding
Check Your Understanding
To find the kth largest element efficiently, what type and size of heap should you use?
- A.Min-heap of size n
- B.Max-heap of size n
- C.Max-heap of size k
- D.Min-heap of size k