How can I add a node in a singly linked list with a value x after i node ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sara janope

    How can I add a node in a singly linked list with a value x after i node ?

    i want to know how to write it with for loop and using insertAfter method, also the same thing by using insertBefore method
Working...