← Microsoft questions

Populate previous pointers in a tree

Filed under Microsoft

Given a binary tree where each node has a 'previous' pointer, populate it to point to the node to its left in the same level. If no node exists to the left, it should be 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.