Skip to content

Commit da6ef80

Browse files
fix: use selection sort instead of bubble sort
1 parent fc75883 commit da6ef80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/linear_data_structures/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ def selection_sort(array, **kwargs):
14391439
"""
14401440
backend = kwargs.pop("backend", Backend.PYTHON)
14411441
if backend == Backend.CPP:
1442-
return _algorithms.bubble_sort(array, **kwargs)
1442+
return _algorithms.selection_sort(array, **kwargs)
14431443
start = kwargs.get('start', 0)
14441444
end = kwargs.get('end', len(array) - 1)
14451445
comp = kwargs.get('comp', lambda u, v: u <= v)

0 commit comments

Comments
 (0)