Multi linked list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Multi linked list

How to delete a node from a list

8th Aug 2018, 10:48 PM
1 Answer
+ 2
assuming the linked list is a -> b -> c -> d -> e if you want to delete node c just do this: >>> = the "next" property restore the next node so before you do this "" is "c" and "", also "", is "d" then we want "" to restore "d", and it is "" therefore, we do this: >>> = now, b is linked to d, and c is missed unless you have stored it with another variable
9th Aug 2018, 2:27 PM
Flandre Scarlet
Flandre Scarlet - avatar