← Microsoft questions
CodingReported in a candidate post, Apr 2021

Sum of leaf nodes at the minimum level of a binary tree

Filed under Microsoft

Given the root of a binary tree, find the sum of the values of all leaf nodes at the minimum level, where the minimum level means the shallowest depth (root is depth 0) at which at least one leaf…

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 Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.