Skip to content

Commit ab8e4a0

Browse files
committed
Fixed sonar
1 parent 964eb63 commit ab8e4a0

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Solution {
1313
val adj: Array<MutableList<IntArray>> = Array(n) { ArrayList<IntArray>() }
1414
for (i in 0..<n) {
1515
adj[i] = ArrayList<IntArray>()
16-
max = max(nums[i].toDouble(), max.toDouble()).toInt()
16+
max = max(nums[i], max)
1717
}
1818
for (e in edges) {
1919
adj[e[0]].add(intArrayOf(e[1], e[2]))

0 commit comments

Comments
 (0)