← Expedia questions

Count Minimum Number of Fountains to Activate

Filed under Expedia

There is a garden with n fountains, represented by an array where each index i indicates the range the fountain at index i can cover from [i - fountains[i], i + fountains[i]]. Find the minimum number…

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 Expedia questions

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