LeetCode219——存在重複元素II

我的LeetCode代碼倉:https://github.com/617076674/LeetCode 原題鏈接:https://leetcode-cn.com/problems/contains-duplicate-ii/description/ 題目描述: 知識點:哈希表、滑動窗口法 思路:滑動窗口法 本題是LeetCode217——存在重複元素的加強版,由於題目要求i和j的絕對值最大爲k,因
相關文章
相關標籤/搜索