Frage im Vorstellungsgespräch bei 7Vals

Given a binary tree, balance it.

Antwort im Vorstellungsgespräch

Anonym

16. Mai 2019

do an inorder traversal. divide the array on the middle. send to the left ones, send to right ones and make the tree again.