← Salesforce questions
CodingMedium

Car Tracking Instruction Sequence

Filed under Salesforce

A car starts at 0 with speed 1. 'A' doubles speed and adds it to position, 'R' reverses direction and resets speed to 1. Find the shortest sequence length to reach target.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

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