摘要: 自己写的: from typing import List class Solution: def containsNearbyDuplicate(self, nums: List[int], k: int) -> bool: # 创建一个空字典,用于存储数字及其最近出现的索引 mydict = { 阅读全文
posted @ 2024-03-13 10:07 Junior_bond 阅读(4) 评论(0) 推荐(0)