Loading Company...
This is a verified interview question from Mathswork. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Maximum Movie Rating Sequence" covers key patterns like DP.
"### Problem You are given an integer array nums representing movie ratings. The ratings can be positive or negative. Your task is to select a sequence of elements such that: The sum of selected elements is maximum. You are allowed to skip elements. You cannot skip two consecutive elements. You may skip any number of elements overall, as long as no two skipped elements are adjacent. Return the maximum possible sum."
Join thousands of developers practicing for Mathswork.