846. Hand of Straights
Using simple search
class Solution:
def isNStraightHand(self, hand: List[int], groupSize: int) -> bool:
# Check if divisible
if len(hand) % groupSize != 0:
return False
hand.sort()
# No. of gr...
tapanrachchh.hashnode.dev1 min read