0
Bubble Sort is glitchy
I wonder why last element of array is disappear. I tried change "bubble.Length - 1" to "bubble.Length" but it go out of array https://code.sololearn.com/cxJvj807r8wP/?ref=app
1 Réponse
0
I am not sure if I am correct, but here is my suggestion:
Try appending the remaining element at the end.