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

16th Feb 2021, 3:42 PM
Essisten
Essisten - avatar
1 Resposta
0
I am not sure if I am correct, but here is my suggestion: Try appending the remaining element at the end.
16th Feb 2021, 4:25 PM
#0009e7 [get]
#0009e7 [get] - avatar