面试题52

输入两个链表,找出它们的第一个公共节点。

如下面的两个链表:

在节点 c1 开始相交。

注意:

Solutions

  1. two pointers

Last updated

Was this helpful?