Problem Statement
A description of the problem can be found on Hackerrank.
Solution
1 2 3 4 5 6 |
void Print(Node head) { while(head != null) { System.out.println(head.data); head = head.next; } } |
Solution also available on my GitHub.