+ 2

What is "bubble-sort" and what is the program of it in python?

I've read the description in the internet but I can't still figure it out... Please help.

30th Oct 2019, 3:16 PM
Parsa Gharavi
Parsa Gharavi - avatar
3 Respuestas
+ 3
Bubble sort is a sorting algorithm, where a list is sorted by swaping adjecent elements of that list if first is larger that second. This puts largest element on the last and eventually it sorts the list
30th Oct 2019, 3:47 PM
Arsenic
Arsenic - avatar
30th Oct 2019, 3:53 PM
Arsenic
Arsenic - avatar
+ 1
Thank you for your reply. Can you show me the code in python?
30th Oct 2019, 3:50 PM
Parsa Gharavi
Parsa Gharavi - avatar