You are viewing a single comment's thread. Return to all comments →
try this guys for java solution, pretty simple
public static Node insert(Node head,int data) { //Complete this method if(head == null) return new Node( data); else if(head.next == null){ head.next = new Node(data); } else{ insert(head.next,data); } return head; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 15: Linked List
You are viewing a single comment's thread. Return to all comments →
try this guys for java solution, pretty simple