Skip to content

Commit b2f5bcb

Browse files
committed
Update alien-dictionary.py
1 parent 8aef287 commit b2f5bcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/alien-dictionary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Time: O(|V|+|E|) = O(26 + 26^2) = O(1)
2-
# Space: O(|E|) = O(26^2) = O(1)
2+
# Space: O(|V|+|E|) = O(26 + 26^2) = O(1)
33

44
class Solution(object):
55
def alienOrder(self, words):

0 commit comments

Comments
 (0)