← Microsoft questions

Binary tree node connectivity

Filed under Microsoft

Given a binary tree and a list of nodes, determine if all nodes in the list are directly connected to each other (i.e., they form a single path or a subtree structure where every node is a…

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.