Skip to content

Commit 65ce584

Browse files
committed
Fixed sonar
1 parent d460362 commit 65ce584

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g3501_3600/s3515_shortest_path_in_a_weighted_tree

1 file changed

+1
-1
lines changed

src/main/kotlin/g3501_3600/s3515_shortest_path_in_a_weighted_tree/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Solution {
3838
tin[u] = ++time
3939
}
4040
if (ptr[u] < adj[u].size) {
41-
val e = adj[u].get(ptr[u]++)
41+
val e = adj[u][ptr[u]++]
4242
val v = e.to
4343
if (v == parent[u]) {
4444
continue

0 commit comments

Comments
 (0)