Skip to content
RED SAG Skills
hardStudy question · answer published in Data Structures and Algorithms interview questions, so no pointssorting-and-searching

Place items to maximise the minimum gap

Stalls are at positions [1, 2, 4, 8, 9]. You must place 3 cows in stalls so that the smallest distance between any two cows is as large as possible. What is that distance?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions