Back to all patterns

Min Heap of Size K

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Min Heap of Size K pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Easy (1)

Kth Largest Element In a Stream

Design a class to find the kth largest element in a stream.

Key Signals:

Maintain k elementsMin heapAdd and maintain size