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

Правка en1, от 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

Теги help, problem

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Astroflexx 2024-09-08 21:23:41 323 Initial revision (published)