Skip to content

Commit d094a82

Browse files
committed
Fixed types
1 parent 0061567 commit d094a82

File tree

1 file changed

+3
-3
lines changed
  • src/main/kotlin/g3301_3400/s3337_total_characters_in_string_after_transformations_ii

1 file changed

+3
-3
lines changed

src/main/kotlin/g3301_3400/s3337_total_characters_in_string_after_transformations_ii/Solution.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package g3301_3400.s3337_total_characters_in_string_after_transformations_ii
44
// #2025_05_14_Time_302_ms_(100.00%)_Space_54.72_MB_(100.00%)
55

66
class Solution {
7-
fun lengthAfterTransformations(s: String, t: Int, numsList: MutableList<Int>): Int {
8-
val localT = buildTransformationMatrix(numsList)
7+
fun lengthAfterTransformations(s: String, t: Int, nums: List<Int>): Int {
8+
val localT = buildTransformationMatrix(nums)
99
val tPower = matrixPower(localT, t)
1010
val freq = IntArray(26)
1111
for (c in s.toCharArray()) {
@@ -23,7 +23,7 @@ class Solution {
2323
return result.toInt()
2424
}
2525

26-
private fun buildTransformationMatrix(numsList: MutableList<Int>): Array<IntArray> {
26+
private fun buildTransformationMatrix(numsList: List<Int>): Array<IntArray> {
2727
val localT = Array(26) { IntArray(26) }
2828
for (i in 0..25) {
2929
val steps: Int = numsList[i]

0 commit comments

Comments
 (0)