
字符串和数组
fantow
这个作者很懒,什么都没留下…
展开
-
LeetCode题解 -- 字符串和数组(1371)
Find the Longest Substring Containing Vowels in Even Counts Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, ‘a’, ‘e’, ‘i’, ‘o’, and...原创 2020-03-12 11:16:31 · 500 阅读 · 1 评论 -
LeetCode题解 -- 字符串和数组(560)
Subarray Sum Equals K Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. 方法一:Presum 时间复杂度:O(n^2) 空间复杂度:O(n) public int su...原创 2020-03-11 21:43:45 · 170 阅读 · 0 评论