Created
February 2, 2020 19:32
-
-
Save PaperDevil/aad5960a1df7e3b67de2142db9c98c36 to your computer and use it in GitHub Desktop.
Алгоритм сортировки выбором
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def selection_sort(area): | |
| sorted = [] | |
| for i in range(len(area)): | |
| minimum = area.index(min(area)) | |
| sorted.append(area.pop(minimum)) | |
| return sorted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment