diff --git a/Linked Lists/InsertAtPos_Doublyll.cpp b/Linked Lists/InsertAtPos_Doublyll.cpp index f641e9e..5da78a3 100644 --- a/Linked Lists/InsertAtPos_Doublyll.cpp +++ b/Linked Lists/InsertAtPos_Doublyll.cpp @@ -1,3 +1,5 @@ +//Given a doubly-linked list, a position p, and an integer x. The task is to add a new node with value x at the position just after pth node in the doubly linked list. + void addNode(Node *head, int pos, int data) { Node* newn= new Node(data);