Nikhil loves numbers
CodeChefOpen on judge ↗
Nikhil loves the numbers which are multiple of two. One day his friend Harshit got to know his interest in numbers which are multiple of two. So he decided to challenge his potential. He gave him a set of number having N number of elements where N is a multiple of two. He challenged Nikhil to re-arrange these numbers such that the first N/2 elements are in strictly increasing order where else the
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