← Questions

Squirrel carrying nuts to a tree

0
AmazonCodingLast asked Mar 2026

A squirrel, a tree and several nuts are on a grid. The squirrel carries one nut at a time to the tree, moving one cell up, down, left or right per step. Return the fewest moves to bring every nut to the tree.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding