Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Triplets
Gold slots = target positions matched exactly by a safe triplet
You may repeatedly pick two triplets and replace one with their element-wise max. Return true if target = [x, y, z] can end up as one of the triplets.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Gold slots = target positions matched exactly by a safe triplet
n = number of triplets. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Up to 10 triplets, values from 1 to 100.