You are viewing a single comment's thread. Return to all comments →
your code will work this way
_____5_____ _2_""""""""_7_ _1"""_3_""_6_""_8_ 0"2""3 4""5"8""7"9
for this tree your answer will be
5 2 7 1 3 0 2 3 4 6 8 5 8 7 9 which is wrong
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Level Order Traversal
You are viewing a single comment's thread. Return to all comments →
your code will work this way
for this tree your answer will be
5 2 7 1 3 0 2 3 4 6 8 5 8 7 9 which is wrong