
The first and only line of input contains the node data for the doubly linked list, separated by single spaces. The input is terminated by -1.
The only line of output prints the elements of the modified singly linked list, separated by spaces.
You are not required to print anything explicitly. The runner code will take the head node returned by your function and traverse it using only the next pointers to print the final list.
Insertion In Doubly Linked List
Insertion In Doubly Linked List
Insertion In Doubly Linked List
Insertion In Doubly Linked List
Insertion In Doubly Linked List
LRU Cache
Delete Nodes On Regular Intervals
Add One To Linked List
Implement Queue Using Linked List