Return the border nodes of a binary tree in clockwise order.
Unlock detailed company stats for this questionUpgrade
Return the borders of a binary tree in clockwise order, starting from the root, then the right side, the bottom and the left side.
Example: for the tree with root 1, children 2 and 3, node 2 having children 4 and 5, and node 3 having left child 6, the output is [1,3,6,5,4,2].
Community answers
No answers contributed by the community yet.


