We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2330813 commit f0bada0Copy full SHA for f0bada0
src/main/kotlin/g3401_3500/s3438_find_valid_pair_of_adjacent_digits_in_string/Solution.kt
@@ -1,11 +1,10 @@
1
package g3401_3500.s3438_find_valid_pair_of_adjacent_digits_in_string
2
3
-// #Easy #String #Hash_Table #Counting #2025_02_05_Time_10_(40.91%)_Space_38.54_(29.55%)
+// #Easy #String #Hash_Table #Counting #2025_02_05_Time_2_(93.18%)_Space_36.38_(100.00%)
4
5
class Solution {
6
fun findValidPair(s: String): String {
7
val t = IntArray(26)
8
- t.fill(0)
9
for (i in 0..<s.length) {
10
t[s[i].code - '0'.code]++
11
}
0 commit comments