Astroflexx's blog

By Astroflexx, history, 2 months ago, In English

Given an array of integers and an integer m, in one operation, choose atmost m numbers of the array and increment them.

What is the minimum no of operations to make all the elements in the array equal?

1 <= nums[i] <= 1e5

1 <= m <= 1e5

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it