Solving Ones and Zeroes in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.

Note:

Example 1:

Input: Array = {"10", "0001", "111001", "1", "0"}, m = 5, n = 3
Output: 4

Example 2:

Input: Array = {"10", "0", "1"}, m = 1, n = 1
Output: 2

Explanation: You could form "10", but then you'd have nothing left. Better form "0" and "1".

See the full details of the problem Ones and Zeroes at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go