LeetCode
Question
·
Jul 2019
Facebook | Phone screen | Binary Tree Right Side View
2 upvotes
988 views
3 replies
Question Details
You are given a binary tree, print all nodes when you view it from right side. 1 / \\ 2 3 / \\ 4 5 Output: 1,3,5
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Binary Tree
More from Meta
Reddit
Leetcode is cooked in 2026 and we don't hire people who only grind leetcode.
Reddit
Returning to SWE work after 3 years of cancer treatment
Reddit
2026 New Grad Recap
Reddit
Most likely failed meta phone screen
Reddit
Targeting OpenAI SWE Roles? Insights on what to expect from recent system design loops