# Given a binary array nums, return the maximum length of a contiguous subarray with an equal number of 0 and 1. # if exist, then calculate the index difference, that will be a candidate that has ...
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is a contiguous part of an array.