Code
The highlighted line runs next. The pill shows the live values in the running call.
Cost
Work done so far, and how the four solutions compare
The array
Bar height = value; dashed line = target; faded bars are ruled out
The highlighted line runs next. The pill shows the live values in the running call.
Work done so far, and how the four solutions compare
Bar height = value; dashed line = target; faded bars are ruled out
Keyboard: ← → step, Space play or pause. Up to 14 distinct numbers from −99 to 99, forming a rotated ascending array (like 4 5 6 7 0 1 2), and a target from −99 to 99.