← Amazon questions
CodingHard

Distribute candies in binary tree

Filed under Amazon

Given the root of a binary tree with n nodes where each node has a certain number of candies, return the minimum number of moves required to distribute candies so that every node has exactly one…

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.