You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: problems/2045/jeremymanning.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
- Given the current time, we can compute the current signal status and update the next travel time accordingly
39
39
- To store both the "minimum" and "second minimum" times, we can create a matrix of tuples: `min_times[i][j][0]` has the minimum time path from `i` to `j`, and `min_times[i][j][1]` has the second minimum time from `i` to `j`:
40
40
- If we find a better time than `min_times[i][j][0]`:
41
-
- `min_times[i][j][1] = `min_times[i][j][0]`
41
+
- `min_times[i][j][1] = min_times[i][j][0]`
42
42
- `min_times[i][j][0] = new_best_time`
43
43
- We can use a list of lists to represent the graph:
0 commit comments