You are viewing a single comment's thread. Return to all comments →
It's a tree but with nodes that have duplicate data.
1 / \ 2 2 / \ 3 3
In this case, swapNodes won't change the nature of the tree.
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 →
It's a tree but with nodes that have duplicate data.
In this case, swapNodes won't change the nature of the tree.