Problem
Given the root of a binary tree, return the values of nodes visible when viewed from the right side (rightmost node at each level).
References
Difficulty
🟡 Medium
Companies
Google, Apple, Zomato
Notes
Language: Java
BFS, grab last element of each level.
Problem
Given the root of a binary tree, return the values of nodes visible when viewed from the right side (rightmost node at each level).
References
Difficulty
🟡 Medium
Companies
Google, Apple, Zomato
Notes
Language: Java
BFS, grab last element of each level.