编写一个程序,找到两个单链表相交的起始节点。 解题思路:因为两个链表。它们的长度可能是不一样的,所以我们需要让长的那个链表先走到短的那个起点上,然后再一起去走,找到相交的点。...
[leetcode] 160.intersection of two linked lists 求两个链表的交点 write a program to find the node at which the intersection of two singly linked lists begins. for example, the following two linked ...