G5 · Novice · 6 min

Index Jenga

Each round is a live array. Either click the last included index of a slice/loop, or click L then R so the standing blocks are exactly a[l..r] inclusive. Half-open slices exclude the right end; contest 'l..r' does not. New round randomizes — the first puzzle does not.

last included

Click the last index that is actually in the slice.

Python a[2:6] — click the last included index.

Half-open [2, 6). Index 6 is the exclusive end; it is a cell in the array and it is still not in the slice.