You are viewing a single comment's thread. Return to all comments →
I think you can improve your space complexity only using a variable and comparing current node with his prev node.
Seems like cookies are disabled on this browser, please enable them to open this website
Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
I think you can improve your space complexity only using a variable and comparing current node with his prev node.