Coding Challenge · INTERMEDIATE
You are planning a movie marathon and want to watch as many movies as possible without exceeding a total viewing time limit. Given a list of movie durations (in minutes) sorted in non-decreasing order and an integer maxTime, determine the maximum number of consecutive movies you can watch without the total duration exc…