We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
wrong code .... its depand on test case...whatever u r getting its fault of hackerrank test case...
to verify my argument use this as test case..
7
2 1 8 7 9 6 5 //level order bst
u will get output as "1 2 8 9" which is wrong..
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Tree : Top View
You are viewing a single comment's thread. Return to all comments →
wrong code .... its depand on test case...whatever u r getting its fault of hackerrank test case... to verify my argument use this as test case.. 7 2 1 8 7 9 6 5 //level order bst
u will get output as "1 2 8 9" which is wrong..