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
can somebody help me solve this problem please? no idea how to solve it
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
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
Astroflexx | 2024-09-08 21:23:41 | 323 | Initial revision (published) |