In-Flight Movie Pair

Asked at Amazon · Coding Questions · Difficulty: Easy · Last asked Mar 17, 2026

A flight lasts a given number of minutes, and you want to recommend two different movies whose runtimes add up to exactly that duration. Given the list of movie runtimes, find such a pair.

Loading the problem…