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

This commit is contained in:
2020-05-24 12:38:29 +08:00
parent 5c5f35c535
commit c371738884
4 changed files with 56 additions and 0 deletions

View File

@ -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)
})