mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-09 15:43:48 +08:00
Update selection_sort_recursive.cpp
This commit is contained in:
@@ -75,7 +75,7 @@ void selectionSortRecursive(std::vector<T> &in_arr,
|
||||
return;
|
||||
}
|
||||
uint64_t min_element_idx =
|
||||
find_min_index::findMinIndex(in_arr, current_position);
|
||||
selection_sort_recursive::findMinIndex(in_arr, current_position);
|
||||
if (min_element_idx != current_position) {
|
||||
std::swap(in_arr[min_element_idx], in_arr[current_position]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user