[LeetCode] Find Nearest Right Node in Binary Tree

1 · · March 7, 2022, 8:54 a.m.
1602. Find Nearest Right Node in Binary Tree Given the root of a binary tree and a node u in the tree, return the nearest node on the same level that is to the right of u, or return null if u is the rightmost node in its level. ...