We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aef287 commit b2f5bcbCopy full SHA for b2f5bcb
1 file changed
Python/alien-dictionary.py
@@ -1,5 +1,5 @@
1
# Time: O(|V|+|E|) = O(26 + 26^2) = O(1)
2
-# Space: O(|E|) = O(26^2) = O(1)
+# Space: O(|V|+|E|) = O(26 + 26^2) = O(1)
3
4
class Solution(object):
5
def alienOrder(self, words):
0 commit comments