Minimize operations required to make each element of Array equal to it's index value
Given an array arr[] consisting of N integers, the task is to modify the array such that arr[index] = index using minimum number of operations of the following type: Choose any index i and any integer X, and add X to all the elements in the range [0, i].Choose any index i and any integer X, and chan