Created
December 24, 2016 04:00
-
-
Save NaotoKumagai/3f0f013459907f8981e22cbbab06e95e to your computer and use it in GitHub Desktop.
Day 15: Linked List
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Node insert(Node head,int data) { | |
//Complete this method | |
if(head==null) { | |
return new Node(data); | |
} | |
head.next = insert(head.next, data); | |
return head; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment