20%off off — LaunchSpecial
Exercises/#36 Binary Tree Right Side View
#36

Binary Tree Right Side View

Medium🌳 Trees
80 XP

Problem

Given the root of a binary tree, imagine standing on the right side. Return the values of the nodes visible from the right side.

Examples

Input: [1,2,3,null,5,null,4]
Output: [1,3,4]
treebfsdfs
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

36 / 150

Your Solution

⚡ JavaScript

to save progress and use AI features