employer cover photo
employer logo

Question d’entretien chez VMware

Write a function that takes a binary tree as input, and have it perform in order traversal.

Réponse à la question d'entretien

Utilisateur anonyme

10 mars 2011

void inOrder(node* aNode) { if(aNode->iLeft) { inOrder(aNode->iLeft); } cout iRight) { inOrder(aNode->iRight); } }

1