So hard
CodeChefOpen on judge ↗
Sort the array. Input An array Output An array Constraints The input array is integer only and has even number of elements. Example Input: 4 2 7 23 66 97 24 989 13 91 213 80 234 45 65 90 12 21 Output: 2 4 7 12 13 21 23 24 65 45 66 80 90 91 97 213 234 989
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start