Fork me on GitHub
摘要: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: 思路: 将0改为-1,将原题目改成求最大连续区间,区间 阅读全文
posted @ 2017-07-15 22:43 hellowOOOrld 阅读(128) 评论(0) 推荐(0) 编辑