NeetCode #784LC-846MediumGreedyNC 150NC 250
← Back to All Problems

#784 · #846 · Hand of Straights(一手顺子)

📌 Problem Statement & Constraints

Alice has a hand of cards hand and wants to rearrange them into groups of groupSize consecutive cards. Return true if she can. Constraints: 1 <= hand.length <= 10^4, 0 <= hand[i] <= 10^9, 1 <= groupSize <= hand.length.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!