Dotify Playlist
You use the Dotify app to store and play your favorite songs. You have a total of $N$ different songs in the app, numbered from $1$ to $N$. The $i^{th}$ song is $M_i$ minutes long, and is in the language $L_i$. You are going on a long drive, and your friend only knows the language $L$. So you want to create a playlist which satisfies these conditions: - There should be exactly $K$ songs in the p
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