Skip to content

Commit 721d218

Browse files
committed
Fixed format
1 parent dbaada2 commit 721d218

File tree

1 file changed

+1
-2
lines changed
  • src/main/kotlin/g3201_3300/s3213_construct_string_with_minimum_cost

1 file changed

+1
-2
lines changed

src/main/kotlin/g3201_3300/s3213_construct_string_with_minimum_cost/Solution.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ class Solution {
8888
for (i in 1 until dp.size) {
8989
node = ac.go(node, target[i - 1])
9090
var temp = node
91-
while (temp != null && temp !== root
92-
) {
91+
while (temp != null && temp !== root) {
9392
if (temp.`val` != null && dp[i - temp.len] < Int.MAX_VALUE / 2) {
9493
dp[i] = min(dp[i], (dp[i - temp.len] + temp.`val`!!))
9594
}

0 commit comments

Comments
 (0)