You are given an array of N integers. In one step, you can increment or decrement an element by 1. Find the minimum number of steps required to make all elements of the array equal.
The post Minimum Steps to Make Array Elements Equal first appeared on COMPLIANT PAPERS.
Minimum Steps to Make Array Elements Equal