Binge Watch Movies on Flight
CodeChefOpen on judge ↗
Prateek is going to fly from point A to point B. His flight length is F hours. He aims to watch 2 movies entirely during his flight such that the lengths of those movies total up to the flight length. He checks each airline's website for the movies that will be available on flight. He notes down the N i.e. number of movies and their M(N) i.e. running time for each movie. Tell Prateek whether it
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start