0

Can someone tell me why this code does absolutely nothing when it should reorder the elements in increasing value?

https://code.sololearn.com/c3z0TAkMUvaq/?ref=app

22nd Oct 2020, 8:55 PM
Peter Malango
Peter Malango - avatar
2 Answers
+ 3
Problem in `solver` method, please review Bubble sort implementation 👇 https://www.sololearn.com/learn/651/?ref=app
22nd Oct 2020, 11:42 PM
Ipang
0
in swap part after if() use cur+1 instead cur++ and don't forget reset timer after while() in next while() loop
23rd Oct 2020, 6:27 AM
zemiak