Take n elements as input for sorting ,sort the array in such a way that first n/2 values is in ascending order and second half of the array is sorted in descending order.
Ex,
Input : 12,4,15,18,91,51
Output:4,12,15,91,51,18
Answers
Answered by
0
Answer:
sorry I don't know this question bro
Explanation:
Similar questions