NeetCode #508LC-698MediumBacktrackingNC 250
← Back to All Problems

#508 · #698 · Partition to K Equal Sum Subsets(划分为 k 个相等的子集)

📌 Problem Statement & Constraints

Given an integer array nums and an integer k, return whether it is possible to divide the array into k non-empty subsets with equal sums. Constraints: 1 <= k <= nums.length <= 16, 1 <= nums[i] <= 10^4.
🔒

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!