When we are checking for left!= NULL and we are flatenning it.
Why do we have leftll.tail->right= root??
We don’t have ‘right’ defined our in class definition of linked list.
When we are checking for left!= NULL and we are flatenning it.
Why do we have leftll.tail->right= root??
We don’t have ‘right’ defined our in class definition of linked list.
Hey @div_yanshu07
LEFTll.TAIL will point to node in tree i.e at end of LL then since its a node of we can access its right
Do a dry run for better understanding