You are viewing a single comment's thread. Return to all comments →
Ha! Good trick.
It was fun to work out the in-order traversal using a list-based stack though :)
By the way, a recursion limit of 1200 is sufficient. (1024 is too small for sure.)
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 →
Ha! Good trick.
It was fun to work out the in-order traversal using a list-based stack though :)
By the way, a recursion limit of 1200 is sufficient. (1024 is too small for sure.)