add: 定长子串中元音的最大数目

This commit is contained in:
yige committed 2020-05-24 12:38:29 +08:00
1 parent 5c5f35c535
commit c371738884
4 files changed
+56

No files matched your search

@@ -0,0 +1,6 @@
import { maxVowels } from '../../src/string/maximum-number-of-vowels-in-a-substring-of-given-length'
test('定长子串中元音的最大数目', () => {
expect(maxVowels('abciiidef', 3)).toBe(3)
expect(maxVowels('rhythms', 4)).toBe(0)
})