阅读背景:

将阵列分成两部分。需要更好的解决方案

来源:互联网 

Given an array of 1's and 0's, divide the array into parts such that the number of 1's in first array is equal to number of 0's in the other. Print the index at which this partition occurs. If there are many such possibilities, find the first of such a partition.Given an array of 1's and 0's, divide the array




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: