拾夕
拾夕
全部文章
分类
题解(11)
归档
标签
去牛客网
登录
/
注册
拾夕的博客
全部文章
(共2篇)
题解 | #判断链表中是否有环# -- 【Python3】
1. 快慢指针 class Solution: def hasCycle(self , head ): if not head: return False slow = head; fast = head; ...
Python
链表
环
2021-08-08
0
272
题解 | #反转链表# --【Python3】
class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # 返回ListNode def ReverseList(self, pH...
Python
链表
2021-08-08
0
225