Coding
Aggressive Cows
Maximize the minimum distance between aggressive cows in stalls.
Input: stalls = [0,4,3,7,10,9], cows = 3
Output: 4
Explanation: Placing the cows at positions 0, 4, and 10 yields a maximum possible minimum distance of 4 between any two cows.
Was asked at