Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2140. Solving Questions With Brainpower
Given a sequence of questions you must consider in order, each question i either yields points[i] but forces you to skip the next brainpower[i] questions or can be skipped; maximize total points. This is an interval-scheduling/DP problem solvable with DP or memoized recursion in O(n) time for n up to 1e5.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.