Back to Questions

Boundary of Binary Tree

38.8K viewsAsked at Oracle
Medium

Question Explain

Given a binary tree, return the values of its boundary nodes, ordered anti-clockwise, starting from the root. The boundary includes the left boundary, leaves, and right boundary.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question