劍指offer python版 23.鏈表中環的入口節點

""" 一個鏈表中包含環,請找出該鏈表的環的入口節點 """ class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def EntryNodeOfLoop(self, pHead): if pHead is None o
相關文章
相關標籤/搜索