G2 · Pupil · 8 min

Pointer Duel

A sorted row of values and a target sum. Advance L or retreat R until the pair hits. The hint bar tells you what the invariant recommends — hide it when you are ready.

target

15

current sum

21

L1
12
24
37
411
515
618
R20

Too big → R--