Академический Документы
Профессиональный Документы
Культура Документы
struct Node
{
int data;
// left is used as previous and right is used
// as next in DLL
Node *left, *right;
}; */
// This function should convert a given Binary tree to Doubly
// Linked List
// root --> Root of Binary Tree
// head --> Pointer to head node of created doubly linked list
root->right=*head;
if(*head)
(*head)->left=root;
*head=root;
BToDLL(root->left, head);
}