Tutorials, Free Online Tutorials,It Challengers provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, core java, sql, php, c language etc. for beginners and professionals.

Breaking

2. Delete a node in double linked list

2. Delete a node in double linked list


         void deleteNode(node *n)
node *np = n->prev;
 node *nn = n->next;
 np->next = n->next;
 nn->prev = n->prev;
 delete n;
}

No comments:

Post a Comment