Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Digits
9s roll over to 0 and the +1 carry moves left
digits holds a large integer, most significant digit first, with no leading zero. Return the digits of that number plus one.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
9s roll over to 0 and the +1 carry moves left
n = number of digits. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Enter 1 to 10 digits like [1,2,9].