manipulate array
CodeChefOpen on judge ↗
Mohan was bore from his usual routine of studies and he wants to solve a problem on codechef . The problem is as follows:- Given a number N denoted the elements in an array.He wants to arrange the elements of an array such that odd positions have sorted elements in ascending order and even positions have sorted elements in descending order. for example if we have 1 2 3 4 5 then the result will b
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