Challenge: Write a program for sorting .. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Challenge: Write a program for sorting ..

for eg. consider an array [4,8,2,9,1] and you can use any language to sort it to [1,2,4,8,9] And sorry ,,I forget to tell that condition that you should not use the keywords or functions like sort...

11th Feb 2018, 5:50 AM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar
7 Answers
+ 18
use " Arrays.sort(arrayname); " in java
11th Feb 2018, 6:36 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 8
use " sorted(<list>) "in Python..😉
11th Feb 2018, 6:48 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
11th Feb 2018, 6:26 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
https://code.sololearn.com/cvo83lLZKJ1F/?ref=app
11th Feb 2018, 6:28 AM
‎ ‏‏‎Anonymous Guy
11th Feb 2018, 8:26 AM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar
+ 2
https://code.sololearn.com/w9mpyparDe2F/?ref=app
9th Apr 2018, 3:54 PM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar