maxlength sub
class Solution {
public int findMaxLength(int[] nums) {
// Convert 0s to -1s
for (int i = 0; i < nums.length; i++) {
if (nums[i] == 0) nums[i] = -1;
}
HashMap<Integer, Integer> map = new HashMap<>();
...
yesamitsingh.hashnode.dev1 min read