← Amazon questions

Minimum steps from start string to destination with deadlocks

Filed under Amazon

Given a start string and a target string of 4 digits, find the minimum number of turns to reach the target. Each digit can be incremented or decremented (wrapping 9 to 0). Some combinations are…

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.