← All problemsSign in

Yet Another Sorting Tool

Chaitya is very desperate for a laptop so he has an idea to earn money quickly in order to buy laptop. He gives his friends a problem statement and tells them to solve it in a given time limit. If a person is not able to solve it in that time, he/she pays 5000/- to Chaitya. The problem is simple. Given an array you are supposed to sort the array based on a condition The condition is as follows:

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start