How bubble sort a list without sort funtion? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How bubble sort a list without sort funtion?

7th Feb 2018, 4:42 PM
Lasath Randika
Lasath Randika - avatar
4 Answers
+ 8
https://code.sololearn.com/cY7SC8lmidwy/?ref=app
7th Feb 2018, 5:59 PM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar
+ 5
Go through the list, index by index. If the item i is bigger than the item i+1, swap them. Do that until no more changes are needed.
8th Feb 2018, 12:10 AM
Pedro Demingos
Pedro Demingos - avatar
+ 1
thanks all❤️❤️❤️
11th Feb 2018, 3:26 AM
Lasath Randika
Lasath Randika - avatar