![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 74
Mr. Zebra
这个作者很懒,什么都没留下…
展开
-
LEETCODE24题
LEETCODE24题代码见下:class Solution {public ListNode swapPairs(ListNode head) {ListNode dummy=new ListNode(0);dummy.next=head;ListNode current=dummy;while(current.next!=null&&current.next.ne...原创 2018-11-20 21:44:44 · 104 阅读 · 0 评论 -
LEETCODE206题 将链表反向
Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iter原创 2018-11-27 19:37:20 · 190 阅读 · 0 评论