presum专题

Lintcode 994 · Contiguous Array (presum + hashmap好题

994 · Contiguous Array Algorithms The length of the given binary array will not exceed 50,000. Example Example 1: Input: [0,1] Output: 2 Explanation: [0, 1] is the longest contiguous subarray with