Code
The highlighted line runs next. The pill shows the live values in the running call.
Cost
Work done so far, and how the two solutions compare
The list
The arc over the top is the tail's link back into the list
The highlighted line runs next. The pill shows the live values in the running call.
Work done so far, and how the two solutions compare
The arc over the top is the tail's link back into the list
Keyboard: ← → step, Space play or pause. Up to 8 node values; index is where the tail links back (−1 for no cycle). As in the problem, index only builds the list; the solutions never see it.