Reverse a Singly LinkedList * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = null; * } * } */ 这是面试的时候被问到的一题,还是考察LinkedList的理解,最后如何得到reverse之后的head的. public Class Soluti…