Insert a node before a perticular node in single linklist | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Insert a node before a perticular node in single linklist

A node is a structure contain two things. 1.int data; 2.struct node * link; link list is a data structure where elements are present in a list with the help of link

14th Oct 2018, 5:21 PM
Abhisek Mishra
Abhisek Mishra - avatar
1 Respuesta
+ 7
Here's a code that inserts a node at the end in Doubly Linked List and then deletes a single node. There is not much difference between singly and doubly LL except for that the current node will have the address of the previous and the next node. So you can move back and forth. If you say I will make a code that will add node at specific position instead of only at last. https://code.sololearn.com/cQEw7l62tqGg/?ref=app
14th Oct 2018, 7:47 PM
blACk sh4d0w
blACk sh4d0w - avatar