← FactSet questions

Kth Level from Leaf

Filed under FactSet

In a perfect binary tree, find and print all nodes that are at distance K from the leaf nodes. A perfect binary tree is one where all internal nodes have two children and all leaves are at the same…

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

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