Back to Question

Boundary of Binary Tree

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

Click "Start Speaking" and answer the question naturally.