Definition for a binary tree node.
Solved at: 220827
Question
Given the root of a binary tree, imagine yourself standing on the right side of it, and return the values of the nodes you can see ordered from top to bottom.
Solution
Results
Runtime
50 ms, faster than 56.24% of Python3 online submissions for Binary Tree Right Side View.
Memory Usage
13.9 MB, less than 70.69% of Python3 online submissions for Binary Tree Right Side View.
Backlinks (1)
Comments (0)