Skip to content

[BFS] Binary Tree Right Side View #28

@sudosf

Description

@sudosf

Problem

Given the root of a binary tree, return the values of nodes visible when viewed from the right side (rightmost node at each level).

References

Difficulty

🟡 Medium

Companies

Google, Apple, Zomato

Notes

Language: Java
BFS, grab last element of each level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bfsBreadth-first searchmediumMedium difficultytreeTree problems

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions