You are given a questions where questions[i]
The array represents an exam where you must process the questions in order from index questions.length i, you have two choices:
Solve question i: You earn points_i points, but you will be unable to solve the next brainpower_i questions. Consequently, the next question you can process is index i brainpower_i
Skip question i: You earn i
Return the maximum total points you can earn on the exam.
Constraints:
questions.length
questions[i].length
points_i, brainpower_i
You are given a questions where questions[i]
The array represents an exam where you must process the questions in order from index questions.length i, you have two choices:
Solve question i: You earn points_i points, but you will be unable to solve the next brainpower_i questions. Consequently, the next question you can process is index i brainpower_i
Skip question i: You earn i
Return the maximum total points you can earn on the exam.
Constraints:
questions.length
questions[i].length
points_i, brainpower_i