Problems / Greedy / Hand of Straights
#126 Medium Time O(n log n) Space O(n) Animated

Hand of Straights

Determine if hand can be rearranged into groups of groupSize consecutive cards.

LeetCode ↗
Approach: Greedy / MinHeap
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps