Anti-Clockwise Outline of a Binary Tree

Asked at Snowflake · Coding Questions · Difficulty: Medium · Last asked Oct 13, 2026

Given the root of a binary tree, return the values of its boundary in anti-clockwise order, starting from the root. This is the outline you would trace walking around the outside of the drawn tree.

Loading the problem…