2017年3月8日

链表模板总结

摘要: 单链表: 1、反转单链表 迭代: 方法1: public ListNode reverseList(ListNode head) { if (head == null) { return null; } ListNode preH = new ListNode(0); preH.next = hea 阅读全文
posted @ 2017-03-08 22:45 阳小徐 阅读(167) 评论(0) 推荐(0) 编辑