Maximum Movie Rating with No Two Consecutive Skips
Given an integer array ratings, where ratings[i] is the rating of movie i, ratings may be positive, zero, or negative. You may watch a movie and collect its rating, or skip it.
Compute the maxi...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
