← Amazon questions

Pair of Movies with Duration Sum Close to Flight Time

Filed under Amazon

Given a list of movie durations and a flight duration, find the indices of two distinct movies whose combined duration is equal to or less than the flight duration minus 30 minutes, maximizing the…

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

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