Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
The cards
Columns = cards left of each value; finished groups collect below
Each hand[i] is a card value. Return true if the cards can be split into groups of exactly groupSize cards whose values are consecutive (each 1 more than the last).
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Columns = cards left of each value; finished groups collect below
n = len(hand). The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Up to 16 cards with values from 0 to 99, groupSize from 1 to 8, and values close enough to fit 17 columns.