Bubblesort an Array from an index location.
Hello, I am stumped with the following.
I have an array,
- scores = new Array[0,14,13,11,18,0,0,0,0];
that I want to sort from index 1 and ignore the zeros only sorting values above 0.
So the array would end up like this,
0,11,13,14,18,
0,0,0,0
instead of 0,0,0,0,0,11,13,14,18;
Keep 0 the first zero at location index 0
Any other value with 0 after index[0] would be added to the end of the array.
Thanks in advance,
Paul.