mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 10:35:34 +08:00
Update selection_sort.cpp
This commit is contained in:
@@ -45,7 +45,7 @@ namespace sorting {
|
||||
*******************************************************************************/
|
||||
|
||||
void selectionSort(
|
||||
std::array<int, 8>& arr,
|
||||
std::array<int, 8> &arr,
|
||||
int len) { // Array size is const, can be modified by replacing "8" at (Ln
|
||||
// 45, Col 21) & (Ln 45, Col 60).
|
||||
for (auto it = 0; it < len; ++it) {
|
||||
@@ -123,4 +123,4 @@ static void test() {
|
||||
int main() {
|
||||
test(); // run self-test implementations
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user