0
sort the array from smallest to largest
int [] array = new int[17]; array[0] = 1; array[1] = 15; array[2] = 4; array[3] = 11; array[4] = 9585; array[5] = 50; array[6] = 2; array[8] = 887; array[9] = 666; array[10] = 12; array[11] = 412; array[12] = 887; array[13] = 454; array[14] = 765; array[15] = 14242; array[16] = 1245;
3 Respostas
+ 4
First try self.
Hint - use loop and compare next value with previous value.
0
use sorting algorithms 🌷
https://brilliant.org/wiki/sorting-algorithms/