View Answer
Workspace
Share
Copy Text
Copy URL
Answer : Option A
Explanation :
You need a temp variable to keep track of current node, hence the space complexity is O(1).
Be The First To Comment