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.
Join Shalyam Newsletter
Get exclusive insights with every issue: education, research and innovation news.
Shalyam Support
Hi! Ask us anything โ we'll reply on WhatsApp or Telegram within 24 hours.