Maximum speed of eating is the maximum bananas in given piles
let end = [ ... piles ] . sort ( ( a , b ) => b - a ) [ 0 ] ; while ( start < end ) { let mid = start + Math . floor ( ( end - start ) / 2 ) ;