Given an array of binary strings strs and two integers m and n, return the size of the largest subset of strs such that the subset contains at most m zeros and at most n ones.
A subset is formed by selecting any number of strings from strs, without changing their order.
findMaxForm(strs, m, n) returns the maximum possible size of such a subset.
Note: A binary string contains only the characters
'0'and'1'.
Constraints:
strs.length
strs[i].length
strs[i] consists only of digits '0' and '1'.
m, n
Given an array of binary strings strs and two integers m and n, return the size of the largest subset of strs such that the subset contains at most m zeros and at most n ones.
A subset is formed by selecting any number of strings from strs, without changing their order.
findMaxForm(strs, m, n) returns the maximum possible size of such a subset.
Note: A binary string contains only the characters
'0'and'1'.
Constraints:
strs.length
strs[i].length
strs[i] consists only of digits '0' and '1'.
m, n