LeetCode 199: Binary Tree Right Side View — Step-by-Step Visual Trace
Medium — Binary Tree | BFS | Queue | Tree Traversal
The Problem
Given the root of a binary tree, return the values of the nodes you can see ordered from top to bottom when looking at the tree from the right side.
Approach
Use level-order traversal (B...
blog.tracelit.dev1 min read