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.