Insertion in doubly linked list after Specified nodeIn order to insert a node after the specified node in the list, we need to skip the required number of nodes in order to reach the mentioned node and then make the pointer adjustments as required. Use the following steps for this purpose.
make the prev of the new node ptr point to temp. make the next pointer of temp point to the new node ptr. make the previous pointer of the next node of temp point to the new node. Algorithm
Write OVERFLOW GOTO STEP 15 C FunctionOutput Enter the item which you want to insert? 12 Node Inserted Press 0 to insert more ? 0 Enter the item which you want to insert? 90 Node Inserted Press 0 to insert more ? 2 Next TopicDoubly Linked List |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India