← Flipkart questions

Distribute k people on n stalls farthest apart

Filed under Flipkart

Given n stalls with their positions on the x-axis and k people, distribute the k people across the stalls such that the minimum distance between any two people is maximized.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.