โ† Amazon questions

Robot max distance from origin

Filed under Amazon

Given a string of 'L', 'R', and '?', where '?' can be 'L' or 'R', find the maximum possible distance from the origin (0) after processing all moves.

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 Amazon questions

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