Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6a1fda

Browse files
authored
Update 882-reachable-nodes-in-subdivided-graph.js
1 parent 2980bc3 commit e6a1fda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

882-reachable-nodes-in-subdivided-graph.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ class PriorityQueue {
199199

200200
// another
201201

202+
// time complexity:
203+
// Dijkstra + Heap is O(E log E)
204+
// worst case: O(N ^ 2 * log (N ^ 2))
202205
/**
203206
* @param {number[][]} edges
204207
* @param {number} M

0 commit comments

Comments
 (0)