In an infinite complete binary tree, nodes are labeled in a zigzag order across consecutive levels:
The first level contains the root with label
The second level contains nodes labeled
The third level contains nodes labeled
The fourth level contains nodes labeled
Given the label of a node in this tree, return a list of labels representing the path from the root to the node with the given label.
Constraints:
In an infinite complete binary tree, nodes are labeled in a zigzag order across consecutive levels:
The first level contains the root with label
The second level contains nodes labeled
The third level contains nodes labeled
The fourth level contains nodes labeled
Given the label of a node in this tree, return a list of labels representing the path from the root to the node with the given label.
Constraints: