Boundary of Binary Tree
Understand and solve the interview question "Boundary of Binary Tree".
We'll cover the following...
Description
Let’s start by defining what a boundary of a binary tree is. We can define it as:
The boundary of a binary tree is the concatenation of the root, the left boundary, the leaves ordered from left-to-right, and the reverse order of the right boundary. Take a look at the example given below:
Take a look at the example given below:
Access this course and 1400+ top-rated courses and projects.