← Amazon questions

Shortest path with trace and inverse function lookup

Filed under Amazon

Part 1: Find the shortest path in a 0/1 matrix and return the path coordinates. Part 2: Given a strictly increasing function f(x) = y, implement the inverse function f_inv(y) = x.

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.