Definition

Two nodes of a binary tree are cousins if they have the same depth with different parents.