@@ -0,0 +1,507 @@
+/**%0A * Definition for singly-linked list.%0A * public class ListNode %7B%0A *     int val;%0A *     ListNode next;%0A *     ListNode(int x) %7B val = x; %7D%0A * %7D%0A */%0Aclass Solution %7B%0A    public ListNode reverseList(ListNode head) %7B%0A        ListNode prev = null;%0A        ListNode curr = head;%0A        while(curr != null) %7B%0A            ListNode tempCurrNext = curr.next;%0A            curr.next = prev;%0A            prev = curr;%0A            // next node%0A            curr = tempCurrNext;%0A        %7D%0A        return prev;%0A    %7D%0A%7D%0A

leetcode : 206. Reverse Linked List