Frage im Vorstellungsgespräch bei Microsoft

Traverse a binary tree in a "zigzag" form

Antwort im Vorstellungsgespräch

Anonym

13. Apr. 2020

Using 2 stacks, for each level stacking the next one in the opposite stack