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 cddf8ad commit f781704Copy full SHA for f781704
1 file changed
Python/permutation-sequence.py
@@ -1,5 +1,5 @@
1
-# Time: O(n)
2
-# Space: O(1)
+# Time: O(n^2)
+# Space: O(n)
3
#
4
# The set [1,2,3,...,n] contains a total of n! unique permutations.
5
0 commit comments