← All problemsSign in

Minutes Left

Chef likes New Years very much. You know the current time and Chef wants you to find the minutes before New Year comes. The time is given in _h_ hours and _m_ minutes. The time is in 24-hour format. New Year comes when the time is exactly 0 hours and 0 minutes. You have to find the minutes before New Year comes. Note: It is guaranteed that the time given is never New Year, i.e

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