← Microsoft questions

Print nodes that are leaves with NULL right children

Filed under Microsoft

Traverse a binary tree and print or return all nodes that satisfy two conditions simultaneously: they are leaf nodes (have no left and right children) and their right child pointer is explicitly NULL…

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.