0

Bubble Sort V2 won't sort values on my phone. But will work perfectly fine on my PC. Why?

check the code I've linked. I ran it on Qpython3 on my phone and it just endlessly attempts to sort the values but never actually does. however, when the EXACT same code is run on my PC it works perfectly. Any answers? https://code.sololearn.com/cqDEtys9Rbx4/?ref=app

25th Feb 2018, 8:17 AM
Kyle Matthew Ford
Kyle Matthew Ford - avatar
5 Answers
+ 1
The compiler etc. on Sololearn does not work as on a computer/elsewhere. Many functions are not available here.
25th Feb 2018, 9:28 AM
Lucien
Lucien - avatar
+ 2
Oh well, I was just looking for a second opinion. I'll try it out anyway though. Thanks for the help.
25th Feb 2018, 9:35 AM
Kyle Matthew Ford
Kyle Matthew Ford - avatar
0
I was thinking, at first, that I should achieve this script using list slicing but I wasn't sure. Should I have done that instead?
25th Feb 2018, 8:22 AM
Kyle Matthew Ford
Kyle Matthew Ford - avatar
0
Oh ok. What are you're thoughts on the use of list slicing to bubble sort?
25th Feb 2018, 9:31 AM
Kyle Matthew Ford
Kyle Matthew Ford - avatar
0
Idk, the last time I implemented Bubble Sort (for practice) was almost 3 years ago, using Java.
25th Feb 2018, 9:33 AM
Lucien
Lucien - avatar