← Microsoft questions
CodingReported in a candidate post, Nov 2019

Find leftmost right cousin in a binary tree

Filed under Microsoft

Given a binary tree and a target node, find the leftmost node that is a right child of its parent and exists at the same depth as the target node.

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

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