Skip to content

Commit 5ba6c42

Browse files
authored
Merge pull request #141 from masx200/deno-dependency-updates
format
2 parents b77aa25 + c0e0176 commit 5ba6c42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

count-vowel-strings-in-ranges/index.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ class Solution {
1717
if (li == ri) booleanToInt(isVowelString(words[li])) else prefixs[ri] - if (li == 0) 0 else prefixs[li - 1]
1818
}
1919
}
20-
private val vowels = hashSetOf('a', 'e', 'i', 'o', 'u')
20+
private val vowels = hashSetOf('a', 'e', 'i', 'o', 'u')
2121
private fun isVowelString(s: String): Boolean {
22-
2322
return s.isNotEmpty() && vowels.contains(s[0]) && vowels.contains(s.last())
2423
}
2524

0 commit comments

Comments
 (0)