if(root->left!=NULL && root->right==NULL)
{
LinkedList leftLL = flatten(root->left);
leftLL.tail->right = root;
l.head = leftLL.head;
l.tail = root;
return l;
}
what is the meaning of this line leftLL.tail->right = root;
Here Linked list has only two pointers head and tail then from where this right has come??