摘要: Problem: 219. 存在重复元素 II 思路 先开用的暴力,结果有个样例超时了,然后改用哈希表 Code 暴力枚举 class Solution { public boolean containsNearbyDuplicate(int[] nums, int k) { int n = num 阅读全文
posted @ 2025-01-29 22:42 韩熙隐ario 阅读(21) 评论(0) 推荐(0)