← Amazon questions

Minimum cost matrix path, nodes at distance r, and sum of bits

Filed under Amazon

Solve three tasks: 1. Find min-cost path in a 2D matrix (right/down moves). 2. Find all nodes at distance r from a target node in a tree. 3. Calculate the total count of set bits for all integers from…

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.