โ† FactSet questions

Print non-boundary elements of a binary tree

Filed under FactSet

Given a binary tree, print or return all elements that are not part of the boundary (i.e., not part of the root, leftmost nodes, rightmost nodes, or leaf nodes unless the tree has only one node).

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.