Function to choose N subarrays of size K such that the maximum element of subarrays is minimum
static int minDays ( int [ ] arr , int n , int k ) { int l = arr . Length ; int left = 1 , right = ( int ) 1e9 ;