Given an array arr[] consisting of N integers and an integer X, the task is count the number of pairs (i, j) such that i… Read More
The post Count pairs (i, j) from an array such that i < j and arr[j] – arr[i] = X * (j – i) appeared first on GeeksforGeeks.
Count pairs (i, j) from an array such that i < j and arr[j] – arr[i] = X * (j – i)
Reviewed by Shoaib Khan
on
May 31, 2021
Rating:
No comments: