You are given a binary tree, print all nodes when you view it from right side.
1
/ \
2 3
/ \
4 5Output: 1,3,5
Comments (3)
You are given a binary tree, print all nodes when you view it from right side.
1
/ \
2 3
/ \
4 5Output: 1,3,5