About This Pattern
Master the Greedy with Hash Map 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)
Hand of Straights
Check if array can be divided into groups of consecutive numbers.
Key Signals:
Sort or use mapForm groups greedilyDecrement counts