Available question text
Given a node label in an infinite binary tree whose rows alternate left-to-right and right-to-left labeling, return the sequence of labels from the root to that node. The core challenge is to account for the per-level zigzag mirroring by mapping labels to their equivalent normal binary-tree indices (and vice versa) to trace ancestors up the tree.
Related questions
Continue with questions that share topics or the same question type.
- Longest ZigZag Path in a Binary Tree
Coding
- Binary Tree Maximum Path Sum
Coding · Binary Tree · Depth-First Search · DP on Trees
- Binary Tree Zigzag Level Order Traversal
Coding
- Binary Tree Zigzag Side View
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1104. Path In Zigzag Labelled Binary Tree
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source