can somebody help me solve this problem please? no idea how to solve it

Revision en1, by Astroflexx, 2024-09-08 21:23:41

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

Tags help, problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Astroflexx 2024-09-08 21:23:41 323 Initial revision (published)