You are viewing a single comment's thread. Return to all comments →
you're probably missing the bit where if k=2, then you have to swap children at depth =2, depth =4, depth=6 and so on
Seems like cookies are disabled on this browser, please enable them to open this website
Swap Nodes [Algo]
You are viewing a single comment's thread. Return to all comments →
you're probably missing the bit where if k=2, then you have to swap children at depth =2, depth =4, depth=6 and so on