Skip to content

Commit

Permalink
insert at given pos in doublyy linked list
Browse files Browse the repository at this point in the history
  • Loading branch information
WaderManasi committed Sep 16, 2020
1 parent 096f098 commit c16c09a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Linked Lists/InsertAtPos_Doublyll.cpp
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit c16c09a

Please sign in to comment.