add: 每个元音包含偶数次的最长子字符串

This commit is contained in:
2020-05-21 00:08:57 +08:00
parent 32fd589c3f
commit 2120bcdecf
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import { findTheLongestSubstring } from '../../src/string/find-the-longest-substring-containing-vowels-in-even-counts'
test('每个元音包含偶数次的最长子字符串', () => {
expect(findTheLongestSubstring('eleetminicoworoep')).toBe(13)
expect(findTheLongestSubstring('leetcodeisgreat')).toBe(5)
expect(findTheLongestSubstring('bcbcbc')).toBe(6)
})