Question d’entretien chez GlobalLogic

How to in-order traverse a binary tree without recursion ?

Réponse à la question d'entretien

Utilisateur anonyme

5 mai 2021

Use Stack. He wanted to know the advantage. In recursion, stack area memory is used but using external stack uses memory from heap. Usually heap is more than stack area.