Verkada's physical security planning software renders a 2D side-profile of buildings to show camera placement. Given a binary tree representing a building's network topology, the engine must return a list of nodes that are directly visible when the tree is viewed perfectly from the right side.
Given the `root` of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
βΆ Run Code to test against examples Β· Submit to judge all 5 test cases