Skip to content

SelectionSort.c is totally wrong , the logic implemented is different from selection-sort #197

Open

Description

@wassim31

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

  1. harshit0015 commented on Dec 27, 2021

    @harshit0015

    Can i add logic for Selection Sort in C language.

  2. wassim31 commented on Dec 28, 2021

    @wassim31
    ContributorAuthor

    I've already sent a PR but no response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions