← All problemsSign in

Monika And Song

Problem description. A good friend of Monika asks her to sing a song. She always refuses to do so. One day she agrees to sing a song but on a condition. As she is a smart girl she wants to sing a song of very less time span. She gives her friend a chart having a matrix of n*m in which each element t is an Integer that represent the time span of each song. As she knows a lot of songs, n and m may

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