From 2e79fce4abffa07e1316538ed733023ec9c8df9f Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 17 Jun 2023 10:18:13 +0000 Subject: [PATCH] format --- count-vowel-strings-in-ranges/index.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/count-vowel-strings-in-ranges/index.kt b/count-vowel-strings-in-ranges/index.kt index ad1d64d9..641d65b2 100644 --- a/count-vowel-strings-in-ranges/index.kt +++ b/count-vowel-strings-in-ranges/index.kt @@ -2,19 +2,14 @@ package com.github.masx200.leetcode_test.count_vowel_strings_in_ranges class Solution { fun vowelStrings(words: Array, queries: Array): IntArray { - - val prefixs = IntArray(words.size) { 0 } words.forEachIndexed { i, s -> if (i == 0) { - prefixs[i] = booleanToInt(isVowelString(s)) } else { prefixs[i] = prefixs[i - 1] + booleanToInt(isVowelString(s)) - } - } return IntArray(queries.size) { val li = queries[it][0]