01 2020 档案

摘要: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 阅读(2491) 评论(3) 推荐(1) 编辑
摘要:Every email consists of a local name and a domain name, separated by the @ sign. For example, in , is the local name, and is the domain name. Besides 阅读全文
posted @ 2020-01-27 04:39 Grandyang 阅读(1641) 评论(0) 推荐(1) 编辑
摘要:(This problem is the same as Minimize Malware Spread, with the differences bolded.) In a network of nodes, each node i is directly connected to anothe 阅读全文
posted @ 2020-01-22 14:10 Grandyang 阅读(1298) 评论(2) 推荐(0) 编辑

Fork me on GitHub