Skip to content

Commit 2508624

Browse files
committed
Improved 3414
1 parent 4543d3e commit 2508624

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals

1 file changed

+1
-1
lines changed

src/main/kotlin/g3401_3500/s3414_maximum_score_of_non_overlapping_intervals/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Solution {
1212
var dp1 = Array<IntArray?>(n) { IntArray(0) }
1313
var dp = LongArray(n)
1414
ns.sortWith { a: IntArray?, b: IntArray? -> a!![0] - b!![0] }
15-
(0..3).forEach { k ->
15+
for (k in 0..3) {
1616
val dp3 = arrayOfNulls<IntArray>(n)
1717
val dp2 = LongArray(n)
1818
dp3[n - 1] = intArrayOf(ns[n - 1]!![3])

0 commit comments

Comments
 (0)