← Google questions

Maximum distance covered by ship given fuel capacity and holidays

Filed under Google

Given an array of distances for N days, an initial fuel capacity K, and a requirement to take exactly H holidays, find the maximum total distance covered. Traveling on day i covers distance[i] and…

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

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