Fredo And Absolute Sorting
CodeChefOpen on judge ↗
Recently, our friend Fredo learned about sorting. Now he is trying to do different things in order to get better at it. He came up with an idea of sorting numbers as follows: Given N unique numbers, he defines them absolute sorted if they are sorted according to their absolute values. Now, he asks you to write a program to implement absolute sorting. Input: The first line consists of N, 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