[🏆 Challenge 🏆] Array sort | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[🏆 Challenge 🏆] Array sort

Write a program that sortes the first half of the entered array in descending order and the other half in the rising order. Example: input: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 output: 5, 4, 3, 2, 1, 6, 7, 8, 9, 10

16th Oct 2017, 12:39 PM
Gilang Segara Bening
Gilang Segara Bening - avatar
1 Answer
16th Oct 2017, 12:52 PM
Zephyr Koo
Zephyr Koo - avatar