My bubblesort doesn't seem to be working right | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

My bubblesort doesn't seem to be working right

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

31st Oct 2017, 10:29 AM
Ayush Sinha
Ayush Sinha - avatar
2 Answers
+ 15
Line 11 should be: temp = nums[i];
31st Oct 2017, 10:33 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
0
thanks a lot!
31st Oct 2017, 10:38 AM
Ayush Sinha
Ayush Sinha - avatar