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 964eb63 commit ab8e4a0Copy full SHA for ab8e4a0
src/main/kotlin/g3401_3500/s3425_longest_special_path/Solution.kt
@@ -13,7 +13,7 @@ class Solution {
13
val adj: Array<MutableList<IntArray>> = Array(n) { ArrayList<IntArray>() }
14
for (i in 0..<n) {
15
adj[i] = ArrayList<IntArray>()
16
- max = max(nums[i].toDouble(), max.toDouble()).toInt()
+ max = max(nums[i], max)
17
}
18
for (e in edges) {
19
adj[e[0]].add(intArrayOf(e[1], e[2]))
0 commit comments