Question d’entretien chez SOLUTE

Reverse the objects in the binary tree.

Réponse à la question d'entretien

Utilisateur anonyme

2 mai 2019

void reverse(Node* root) { if(root == NULL) return; else return swap(reverse(root->left), reverse(root->right)) } then just make a swap function