Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selection sort implementation #199

Open
mn3m-cs opened this issue May 15, 2021 · 2 comments
Open

selection sort implementation #199

mn3m-cs opened this issue May 15, 2021 · 2 comments

Comments

@mn3m-cs
Copy link

mn3m-cs commented May 15, 2021

selection sort should be in-place, why you create an additional array to keep sorted elements in it?

@mn3m-cs mn3m-cs changed the title selection sort wrong implementation selection sort implementation May 15, 2021
@pfrontera
Copy link
Contributor

I just created a PR about this tòpic. With this implementation, sorting is in-place swapping the values inside the same array.

@pfrontera
Copy link
Contributor

Hi @egonSchiele I made this implementation after reading and learning from your book. Do you have any suggestions about the PR I did?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants