Given an array arr[] containing positive integers, count the total number of pairs for which arr[i]+i = arr[j]+j such that 0≤i<j≤n-1. Examples: Input: arr[] =… Read More The post Count pairs in given Array having sum of index and value at that index equal appeared first on GeeksforGeeks.