You are given a stations of length n, where stations[i] denotes the number of power stations in the
Each power station provides power to every city within a distance of r. That is, a power station at city j provides electricity to city i if r.
The total power of a city is the sum of all power stations that can provide electricity to it.
You are also given two integers r and k. You may construct at most k additional power stations in any of the cities.
Return the maximum possible minimum power among all cities after optimally adding at most k additional power stations.
Constraints:
n == stations.length
n
stations[i]
r n
k
You are given a stations of length n, where stations[i] denotes the number of power stations in the
Each power station provides power to every city within a distance of r. That is, a power station at city j provides electricity to city i if r.
The total power of a city is the sum of all power stations that can provide electricity to it.
You are also given two integers r and k. You may construct at most k additional power stations in any of the cities.
Return the maximum possible minimum power among all cities after optimally adding at most k additional power stations.
Constraints:
n == stations.length
n
stations[i]
r n
k