← All problemsSign in

A Music Project

Rohit wants to do a project, where he will compare his Music taste with his friends. $$ $$ For his project, Rohit wants to compare his Music taste with $K$ no. of friends, for each friend, Rohit will take $N$ no. of songs, and label them with a number, and the label with smallest number will be ranked higher and come first in the list, such that the song with the lowest labeling will be Rohit’s

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