剑指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
相关文章
相关标签/搜索