码迷,mamicode.com
首页 > 其他好文 > 详细

[LeetCode] Contains Duplicate III 包含重复值之三

时间:2015-06-02 01:37:36      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

 

Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] is at most t and the difference between i and j is at most k.

 

 

 

 

 

参考资料:

https://leetcode.com/discuss/38195/short-c-solution

http://www.cnblogs.com/easonliu/p/4544073.html

 

[LeetCode] Contains Duplicate III 包含重复值之三

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4545261.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!