Sollicitatievraag bij TecAce

Find the max value in a binary tree, but do it iteratively.

Antwoord op sollicitatievraag

Anoniem

1 nov 2017

I used BFS here, I had a queue that pushed the head if it was not null and then continued to do that for each left and right node using a while loop.