egonSchiele/grokking_algorithms

selection sort implementation

mn3m-cs opened this issue · 3 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?