美文网首页
219. Contains Duplicate II

219. Contains Duplicate II

作者: 成江 | 来源:发表于2017-12-25 23:59 被阅读4次

Leetcode
https://leetcode.com/problems/contains-duplicate-ii/description/
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k.

相关文章

网友评论

      本文标题:219. Contains Duplicate II

      本文链接:https://www.haomeiwen.com/subject/ffnhbxtx.html