@@ -0,0 +1,550 @@
+package com.matao;%0A%0Aimport com.matao.common.ListNode;%0A%0A/**%0A * Created by matao on 2019-01-06.%0A */%0Apublic class Q24_ReverseList %7B%0A%0A    public ListNode%3CInteger%3E reverseList(ListNode%3CInteger%3E head) %7B%0A        if (head == null %7C%7C head.next == null) return head;%0A%0A        ListNode%3CInteger%3E curr = head;%0A        ListNode%3CInteger%3E pre;%0A        ListNode%3CInteger%3E post = curr.next;%0A        while (post != null) %7B%0A            pre = curr;%0A            curr = post;%0A            post = post.next;%0A            curr.next = pre;%0A        %7D%0A        return curr;%0A    %7D%0A%7D%0A

add Q24 ReverseList