You are viewing a single comment's thread. Return to all comments →
Hey there. My comment says it's O(1) space complexity. The time complexity is not O(1)
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Preorder Traversal
You are viewing a single comment's thread. Return to all comments →
Hey there. My comment says it's O(1) space complexity. The time complexity is not O(1)