NeetCode #677LC-377Medium1-D Dynamic ProgrammingNC 250
← Back to All Problems

#677 · #377 · Combination Sum IV(组合总和 IV)

📌 Problem Statement & Constraints

Given an array of distinct positive integers nums and a target, return the number of ordered sequences whose elements sum to target. Different orderings count as different sequences. Constraints: 1 <= nums.length <= 200, 1 <= nums[i] <= 1000, 1 <= target <= 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!