| Thanks for working on this, Dennis! The original implementation processes siblings before children, but the solution proposed by you processes siblings first. I don’t know if the calling code relies on any specific order or if it does not matter. In order to have children processed first with the deque solution, you’d have to push the sibling into the deque first, then the child. |