There was an error while loading. Please reload this page.
1 parent 76e5ace commit 8cb1dd2Copy full SHA for 8cb1dd2
alternative/medium/hand_of_straights.py
@@ -0,0 +1,8 @@
1
+from typing import List
2
+
3
+def isNStraightHand(hand: List[int], groupSize: int) -> bool:
4
+ True
5
6
+assert isNStraightHand([1,2,3,6,2,3,4,7,8], 3) == True
7
+assert isNStraightHand([1,2,3,4,5], 4) == False
8
+assert isNStraightHand([1,2,3,4,5], 5) == True
0 commit comments