← Amazon questions

Minimum Cost Path with Four-Directional Movement and Negative Edges

Filed under Amazon

Find the minimum cost path from the top-left to bottom-right of a matrix, where movement is allowed in all four directions and edges can be negative.

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.