Skip to content

Commit d4f1e17

Browse files
authored
Update number-of-operations-to-make-network-connected.py
1 parent fb63949 commit d4f1e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/number-of-operations-to-make-network-connected.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Time: O(|E| + |V|)
2-
# Space: O(|V)
2+
# Space: O(|V|)
33

44
class UnionFind(object):
55
def __init__(self, n):
@@ -36,7 +36,7 @@ def makeConnected(self, n, connections):
3636

3737

3838
# Time: O(|E| + |V|)
39-
# Space: O(|V)
39+
# Space: O(|V|)
4040
import collections
4141

4242

0 commit comments

Comments
 (0)