← Microsoft questions

Binary Tree Boundary Traversal and Largest Island Perimeter

Filed under Microsoft

Print the boundary of a binary tree in an anti-clockwise direction (left boundary, leaves, right boundary in reverse), and find the perimeter of the largest island in a 2D grid.

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.