From c16c09aba5f94bf67322c4471451a7bb28aba04c Mon Sep 17 00:00:00 2001 From: Manasi Wader Date: Wed, 16 Sep 2020 17:53:53 +0530 Subject: [PATCH] insert at given pos in doublyy linked list --- Linked Lists/InsertAtPos_Doublyll.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);