+ 4
Challenge!! Let's go to order
I want a code to order all the elements of my array, for example: I have a[4]={5,3,8,4} ...after the code... a[4]={3,4,5,8}
4 Respuestas
+ 3
#include <algorithm>
...
std::sort(a,a+4);
+ 2
Arrays.sort(a[4]);
+ 1
Here's my attempt in Cpp and Java
Check it out
https://code.sololearn.com/cuitKiUC8C62/?ref=app
https://code.sololearn.com/cY5BGE6O1l9U/?ref=app
https://code.sololearn.com/cMnAEJ9oNZ02/?ref=app
+ 1
Here, another cool one in C
https://code.sololearn.com/cFXjqRnYSN1X/?ref=app