🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Binary Search Quiz: all 8 questions

Binary Search Quiz · Question 7 of 8

Koko eats piles [3, 6, 7, 11] and has h = 8 hours. What is the minimum speed k?

Koko eats piles [3, 6, 7, 11] and has h = 8 hours. What is the minimum speed k?

Answer & explanation

Correct answer: 4

At k = 4: ceil(3/4)+ceil(6/4)+ceil(7/4)+ceil(11/4) = 1+2+2+3 = 8 hours ✓. At k = 3 it takes 10 hours ✗.

Can you get the rest right without peeking?

Take the timed Binary Search Quiz quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →