2903. 找出满足差值条件的下标 I
找出满足差值条件的下标 I
- 难度:
medium
- 原始链接: https://leetcode.cn/problems/find-indices-with-index-and-value-difference-i
- 标签:
双层循环
解法一: 双层循环
1 | func findIndices(nums []int, indexDifference int, valueDifference int) []int { |
medium
双层循环
1 | func findIndices(nums []int, indexDifference int, valueDifference int) []int { |