220. Contains Duplicate III
2019-02-21
阅读 2 分钟
1.5kGiven an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j] is at most t and the absolute difference between i and j is at most k.Example 1: