Skip to content

Fix bracktrack time complexity #965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 6, 2019
2 changes: 1 addition & 1 deletion backtracking/all_permutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'''

Expand Down