We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deb0cdc commit c0cebeeCopy full SHA for c0cebee
backtracking/all_subsequences.py
@@ -2,7 +2,7 @@
2
In this problem, we want to determine all possible subsequences
3
of the given sequence. We use backtracking to solve this problem.
4
5
- Time complexity: O(2^n),
+ Time complexity: O(2^n * n),
6
where n denotes the length of the given sequence.
7
'''
8
0 commit comments