[] 36.オファーは、2つの第1の共通ノードリスト実装パイソンを獲得します

タイトル説明

二つの入力リスト、その第1の共通のノードを見つけます。

# -*- coding:utf-8 -*-
# class ListNode:
#     def __init__(self, x):
#         self.val = x
#         self.next = None
class Solution:
    def FindFirstCommonNode(self, pHead1, pHead2):
        # write code here
公開された99元の記事 ウォンの賞賛6 ビュー3959

おすすめ

転載: blog.csdn.net/weixin_42247922/article/details/104021367
おすすめ