Given an array arr[] of N elements and an integer K, the task is to make any K elements of the array equal by performing only increment operations i.e. in one operation, any element can be incremented by 1. Find the minimum number of operations required to make any K elements equal.
Minimum increment by k operations to make all elements equal : https://www.geeksforgeeks.org/minimum-increment-operations-to-make-k-elements-equal/