mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-12 04:18:08 +00:00
Fix backtrack time complexity (#965)
* Update backtracking/all_permutations.py
This commit is contained in:
parent
781b7f86e7
commit
69bed59036
|
@ -2,7 +2,7 @@
|
||||||
In this problem, we want to determine all possible permutations
|
In this problem, we want to determine all possible permutations
|
||||||
of the given sequence. We use backtracking to solve this problem.
|
of the given sequence. We use backtracking to solve this problem.
|
||||||
|
|
||||||
Time complexity: O(n!),
|
Time complexity: O(n! * n),
|
||||||
where n denotes the length of the given sequence.
|
where n denotes the length of the given sequence.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user