CodingReported in a candidate post, Oct 2023
Check whether two nodes are cousins
Filed under Blue Yonder
The question
Given two nodes of a binary tree, return whether they are cousins.
No write-up yet. Related questions below have one.
Related Blue Yonder questions
Collected from public candidate posts and coding forums. Updated Nov 2026.