1 parent d9da92f commit 27b802bCopy full SHA for 27b802b
1 file changed
data_structures/array/permutations_of_word.py
@@ -6,7 +6,7 @@ def permutation(lst):
6
l = []
7
for i in range(len(lst)):
8
m = lst[i]
9
- rem_lst = lst[:i] + lst[i+i:]
+ rem_lst = lst[:i] + lst[i+1:]
10
for p in permutation(rem_lst):
11
l.append([m] + p)
12
return l
0 commit comments