#846

Hand of Straights

medium· Greedyruns: 0

Alice has some number of cards and wants to rearrange them into groups, where each group has size groupSize and consists of groupSize consecutive cards. Given an integer array hand where hand[i] is the value of the ith card and an integer groupSize, return true if she can rearrange the cards as required.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.