egonSchiele / grokking_algorithms

Code for the book Grokking Algorithms (https://amzn.to/29rVyHf)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

selection sort implementation

mn3m-cs opened this issue · comments

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

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

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