http://geeksforgeeks.org/?p=6358
Can anyone please explain how Morris Traversal has a time complexity of o(n)? In the traversal, whenever the node has a left child a copy of it is made to the right child of its predecessor. So worst case is that predecessor has to be found for each node
while(pre->right != NULL && pre->right != current)
pre = pre->right;
Which is going to increase the time complexity? Am I missing anything here?
