Skip to content

Comments

added bubble, insertion, and selection sort#5

Open
ayaandada wants to merge 1 commit intoXavierCodingClub:mainfrom
ayaandada:patch-1
Open

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

Conversation

@ayaandada
Copy link

No description provided.

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

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
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