NeetCode #934LC-2601MediumMath & Geometry
← Back to All Problems#934 · #2601 · Prime Subtraction Operation(质数减法运算)
📌 Problem Statement & Constraints
Given an array
nums, you may perform any number of operations: pick an unused index i and a prime p, then replace nums[i] with nums[i] - p (the result must stay positive). Each index is used at most once. Return whether nums can be made strictly increasing. Constraints: 1 <= nums.length <= 1000, 1 <= nums[i] <= 1000.🔒
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!