NeetCode #729LC-474Medium2-D Dynamic Programming
← Back to All Problems

#729 · #474 · Ones and Zeroes(一和零)

📌 Problem Statement & Constraints

Given an array of binary strings strs and integers m and n, find the largest subset that contains at most m zeros and at most n ones in total. Constraints: 1 <= strs.length <= 600, 1 <= strs[i].length <= 100, 1 <= m, n <= 100.
🔒

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!