Skip to main content
Binary Tree Right Side View | AlgoCracked
AlgoCracked
ProblemsBinary Tree Right Side View
Medium62.0% acceptance
Blind75TreeDfsBfs

Binary Tree Right Side View

Imagine standing to the right of a binary tree. Return the values of the nodes you can see, ordered top to bottom (the last node of each level). Input format Level-order JSON array with nulls, e.g. [[1,2,3,null,5,null,4]] . TreeNode is predefined.

Loading workspace…