← Google questions
CodingReported in a candidate post, Oct 2021

Delete Leaf Nodes and Print Level by Level

Filed under Google

Given the root of a binary tree, delete all leaf nodes, print them out, and then print the remaining tree level by level.

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

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