You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SelectionSort.c is totally wrong , the logic implemented is different from selection-sort #197
In C folder , SelectionSort.c , the logic implemented is similar to BubbleSort.c instead of real logic of selection-sort which is the following :
Finding the smallest element in the array , swap it's location with the first element in the array , and doing that until the array is sorted .
But in the following code d7f3626 , they're comparing adjacent elements , j and j+1.
Activity
harshit0015 commentedon Dec 27, 2021
Can i add logic for Selection Sort in C language.
wassim31 commentedon Dec 28, 2021
I've already sent a PR but no response.