摘要: In an array A of 0s and 1s, how many non-empty subarrays have sum S? Example 1: Input: A = [1,0,1,0,1], S = 2 Output: 4 Explanation: The 4 subarrays a 阅读全文
posted @ 2020-01-31 14:30 Grandyang 阅读(2361) 评论(3) 推荐(1) 编辑
Fork me on GitHub