← Microsoft questions

Maximum Width of Binary Tree

Filed under Microsoft · Also reported at Uber, Walmart

Given a binary tree, find its maximum width. The width of one level is defined as the length between the end-nodes (the leftmost and rightmost non-null nodes), where the null nodes between the…

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.