Hand of Straights
Medium
Greedy (Advanced)
Given a hand of cards and a group size, print true if the cards can be rearranged into groups of consecutive values, each of exactly the group size.
Constraints
1 <= n <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.