Skip to content

Commit 15ac311

Browse files
authored
Update pancake-sorting.py
1 parent 346d244 commit 15ac311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pancake-sorting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def smallerMergeSort(idxs, start, end, counts):
8282
smaller_counts = [0]*len(arr)
8383
for i, x in enumerate(arr):
8484
idxs.append((x, i))
85-
smallerMergeSort(idxs[:], 0, len(idxs)-1, smaller_counts)
85+
smallerMergeSort(idxs, 0, len(idxs)-1, smaller_counts)
8686
result = []
8787
for i, n in enumerate(smaller_counts):
8888
if n == i: # already sorted

0 commit comments

Comments
 (0)