← Samsung questions

Sum of Cousin Nodes at Level

Filed under Samsung

Given the root of a binary tree and a target key, find the sum of all cousin nodes at the same level as the node with the given key. Cousin nodes are nodes at the same level that do not share the same…

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 Samsung questions

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