Skip to content

added bubble, insertion, and selection sort - #5

Open
ayaandada wants to merge 1 commit into
XavierCodingClub:mainfrom
ayaandada:patch-1
Open

added bubble, insertion, and selection sort#5
ayaandada wants to merge 1 commit into
XavierCodingClub:mainfrom
ayaandada:patch-1

Conversation

@ayaandada

Copy link
Copy Markdown

No description provided.

Comment thread libs/algorithms.py
for i in range(lengthOfList):
for j in range(0, lengthOfList - i - 1):
if numList[j] > numList[j+1]:
numList[j], numList[j+1] = numList[j+1], numList[j]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i forgot i could do that thingy on line 14

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i completely forgot about it as well. i learned sorting algos in java so doing them in python took me a lot longer than it should've lol

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

Successfully merging this pull request may close these issues.

2 participants