Maximize Points -- Not OA but an INTERVIEW Question! :)

Problem Overview

  • Select elements from an array to maximize total points under an exclusion rule.
  • Input: array of integers; Output: maximum achievable points.
  • Taking value v at index i forces you to skip the next v indices.
  • Models reward selection with a variable cooldown after each pick.
  • Asked in Google interviews; a classic coding interview problem and interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: