Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 03 Basic Sorting /selection_sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void selection_sort(int a[],int n){

for(int pos = 0; pos <= n-2; pos++){

int current = a[pos];

int min_position = pos;

//find out the element
Expand Down Expand Up @@ -35,4 +35,4 @@ int main(){
}

return 0;
}
}