Write a program to find the node at which the intersection of two singly linked lists begins. For example, the…
分类:链表相关算法
(LeetCode 141/142)Linked List Cycle
1、Given a linked list, determine if it has a cycle in it. 2、Given a linked list, return the node where the cyc…
(链表)反转链表Reverse List
逆转链表是简单而又简单的链表问题,其问题的方法之一可以设置三个指针,一个指向当前结点,一个指向前驱结点,一个指向后继指针 代码如下: class Solution { public: ListNode* ReverseL…