Skip to content

Commit 69bed59

Browse files
authored
Fix backtrack time complexity (TheAlgorithms#965)
* Update backtracking/all_permutations.py
1 parent 781b7f8 commit 69bed59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtracking/all_permutations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
In this problem, we want to determine all possible permutations
33
of the given sequence. We use backtracking to solve this problem.
44
5-
Time complexity: O(n!),
5+
Time complexity: O(n! * n),
66
where n denotes the length of the given sequence.
77
'''
88

0 commit comments

Comments
 (0)