Back to all patterns

Min Heap or Quick Select

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Min Heap or Quick Select 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.

Medium (1)

K Closest Points to Origin

Find k closest points to the origin.

Key Signals:

Calculate distancesHeap of size k or partitionReturn k smallest