You are viewing a single comment's thread. Return to all comments →
if(head==null){ head=n; return head; } This is not required.
Insert a node at a specific position in a linked list
You are viewing a single comment's thread. Return to all comments →