← Arcesium questions

Find all cousins of a given node in a binary tree

Filed under Arcesium

Given a binary tree and a target node, find all nodes that are cousins of the target. Two nodes are cousins of each other if they are at the same level and have different parents. You may only use…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Arcesium questions

Collected from public candidate posts and coding forums. Updated Nov 2026.