Thanks for your reply.
Actually, The auxiliary space stores the approximately the same amount of memory as the Node class. Like the node class, this also has 2 pointers. Also note that this is for each node (Please confirm this point). If we compare:
Node class: 4 (int) + Node*(8) + Node*(8) = 20 bytes
Linked List class: Node*(16) + Node*(8) = 16 bytes
Thus 80% extra space per node. As far as I know, Inplace should be without using extra memory. Even if memory is used, it should be negligible. The memory usage here is non-negligible. Saving Node* in a stack or any other 1D data structure perhaps would have been much more space optimised that this. Each node* would take 8 bytes versus LinkedList class which takes 16 bytes.
Is there a better method than this? I saw a few other methods and they seem to be without this overhead requirement.
I also saw a few other questions where instead of inorder, the requirement was to convert the Binary tree into Linked list in Preorder and level order manner
Can we extend this approach for these questions too?