Skip to content

Commit fdcd6ea

Browse files
committed
Update comments
1 parent 29db49b commit fdcd6ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

algorithms/intersection-of-two-linked-lists.js

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* @return {ListNode}
1414
*/
1515
var getIntersectionNode = function (headA, headB) {
16+
// 思路: 让 headA 和 headB 从同一起点出来, 开始移动, 结果 相交或不相交
17+
// 这种方式更好理解
18+
1619
if (!headA || !headB) {
1720
return null;
1821
}

0 commit comments

Comments
 (0)