Leetcode: Cousins in Binary Tree
Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding to the values x and y in the tree are cousins*, or false otherwise.* Two nodes of a binary tree are c...
Jul 10, 20234 min read82
