mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +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
|
||||
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.
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user