Pregunta de entrevista de SOLUTE

Reverse the objects in the binary tree.

Respuesta de la entrevista

Anónimo

2 may 2019

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