NeetCode #687LC-2140Medium1-D Dynamic Programming
← Back to All Problems#687 · #2140 · Solving Questions With Brainpower(解决智力问题)
📌 Problem Statement & Constraints
You are given a 2-D array
questions where questions[i] = [points_i, brainpower_i]. Solving question i earns points_i but forces you to skip the next brainpower_i questions; alternatively you may skip it. Return the maximum points obtainable. Constraints: 1 <= questions.length <= 10^5, 1 <= points_i <= 10^5, 0 <= brainpower_i <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!