filmov
tv
Binary Tree Right Side View - Leetcode #199

Показать описание
In this problem we have given a Binary tree and we need to return list of Nodes which are going to be visible from right side view of that tree.
Solved this problem using DFS Recursive approach.
Time complexity - O ( N )
Space complexity - O ( 1 )
Solved this problem using DFS Recursive approach.
Time complexity - O ( N )
Space complexity - O ( 1 )