![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
willlu10
这个作者很懒,什么都没留下…
展开
-
链表逆置
链表逆置 是一个比较经典的题目了先贴代码 public static ListNode reverse(ListNode head) { if (head == null) { return null; } ListNode pre = null; ListNode next = null; ...原创 2018-06-11 17:31:25 · 164 阅读 · 0 评论 -
复杂链表的复制
复杂链表的复制 我们选取其中的一段代码进行分析 RandomListNode s = new RandomListNode(0); RandomListNode s1 = s; while (pHead != null) { RandomListNode q = pHead.next; pHead.next ...原创 2018-06-11 22:23:10 · 141 阅读 · 0 评论