โ† Sabre questions

Car Instruction Target Location

Filed under Sabre

The question

Given a car starting at position 0 with speed +1, reach a target location using the minimum number of instructions where 'A' accelerates (pos+=speed, speed*=2) and 'R' reverses (pos unchanged, speed becomes -1).

No write-up yet. Related questions below have one.

Related Sabre questions

Collected from public candidate posts and coding forums. Updated Nov 2026.