-
-
Notifications
You must be signed in to change notification settings - Fork 359
added selection sort python algorithme #217
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
Conversation
I'm putting this on hold till #216 gets the green light. |
this is not insertion sort sorry, this is selection sort I've corrected it. |
I got rid of the on hold label since it's not the same algorithm. |
The algorithm will not be in the AAA soon and in general algorithms should be written with the chapter in mind imho. Also they need to get integrated in the chapter and if there is no chapter, the algorithm can't be integrated. I see no reason, why this PR even exists. |
@@ -0,0 +1,7 @@ | |||
def selectionList(lst): | |||
for i in range(0, len(lst)): | |||
if i < len(lst): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this if
statement is doing. Could you please explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really can't remember what was the purpose of that, and it seems wrong from looking at it now, I'm ashamed of this tbh, I code better than this now I promise
No description provided.