Skip to content

Commit b77aa25

Browse files
authored
Merge pull request #140 from masx200/deno-dependency-updates
format
2 parents c4870ff + 2e79fce commit b77aa25

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@ package com.github.masx200.leetcode_test.count_vowel_strings_in_ranges
22

33
class Solution {
44
fun vowelStrings(words: Array<String>, queries: Array<IntArray>): IntArray {
5-
6-
75
val prefixs = IntArray(words.size) { 0 }
86

97
words.forEachIndexed { i, s ->
108
if (i == 0) {
11-
129
prefixs[i] = booleanToInt(isVowelString(s))
1310
} else {
1411
prefixs[i] = prefixs[i - 1] + booleanToInt(isVowelString(s))
15-
1612
}
17-
1813
}
1914
return IntArray(queries.size) {
2015
val li = queries[it][0]

0 commit comments

Comments
 (0)