[Solved] Find Indices With Index and Value Difference II C++,Python, Java
![[Solved] Find Indices With Index and Value Difference II C++,Python, Java Index](https://realcoder.techss24.com/wp-content/uploads/2023/10/output-41-768x512.png)
You are given a 0-indexed integer array nums having length n, an integer indexDifference, and an integer valueDifference. Your task is to find two indices i and j, both in the range [0, n – 1], that satisfy the following conditions: Return an integer array answer, where answer = [i, j] if there are two such indices, and answer =…