摘要: 自己写的 class Solution: def strStr(self, haystack: str, needle: str) -> int: haystack_len = len(haystack) needle_len = len(needle) if haystack == needle: 阅读全文
posted @ 2024-01-22 16:00 Junior_bond 阅读(7) 评论(0) 推荐(0)
摘要: 自己写的: class Solution: # 1 2 2 3 3 4 def removeElement(self, nums, val): numms_len = len(nums) if numms_len == 0: return numms_len i = 0 while i < numm 阅读全文
posted @ 2024-01-22 09:58 Junior_bond 阅读(8) 评论(0) 推荐(0)