Sorting-Algorithms icon indicating copy to clipboard operation
Sorting-Algorithms copied to clipboard

Fixing the logic of SelectionSort.c and adding modular programming design

Open wassim31 opened this issue 3 years ago • 0 comments

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. So i will fix the issue #197

wassim31 avatar Jul 30 '21 16:07 wassim31