← All problemsSign in

Abhinav And His Playlist

Abhinav loves music. He likes to create playlists of the songs he has. He likes songs of length $K$ minutes and he does not like the songs of length $M$ minutes. So while creating the playlist he adds all the songs he loves at the beginning and the songs that he does not like at the end, without changing the order of other songs he has. Abhinav is a lazy kid so he needs your help. You have been gi

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