摘要: //非递归方式进行链表反转 public ListNode reverseList(ListNode head){ if(head==null||head.next==null){ return head; }else { ListNode pre=head; ListNode p=head.next; ListNo... 阅读全文
posted @ 2016-12-02 23:58 帆疯子 阅读(1640) 评论(1) 推荐(0) 编辑