To detect if there is a loop in Binary Tree.
I think we can do inorder traversal and mark each and every node visited and if we again come across to any of such node which is visited then we can say that there is a loop in Binary Tree.
It will take O(logn) - Time O(n) - Auxiliary Space
Are there any more efficient methods for this?