Get your own website
Python
C
Java
 
Python result:
C result:
Java result:
Original array: [170, 45, 75, 90, 802, 24, 2, 66]
Sorted array: [2, 24, 45, 66, 75, 90, 170, 802]
Original array: 170 45 75 90 802 24 2 66
Sorted array: 2 24 45 66 75 90 170 802
Original array: 170 45 75 90 802 24 2 66
Sorted array: 2 24 45 66 75 90 170 802