<qiyuangong>453_Minimum_Moves_to_Equal_Array_Elements_1.java
public int minMoves(int[] nums) {
        if (nums.length == 0) return 0;
        Arrays.sort(nums);
        int min_num = nums[0];
        int ans = 0;
        for (int num : nums) {
            ans += num - min_num;
        }
        return ans;
    }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 . length == 0 ) return 0 ;
  Arrays . sort ( var_0 ) ;
  int var_5 = var_0 [ 0 ] ;
  int var_6 = 0 ;
  for ( int var_7 : var_0 ) {
    var_6 += var_7 - var_5 ;
  }
  return var_6 ;
}
