← All problemsSign in

Rohit and Parking

Rohit has opened a new restaurant in Mumbai. Since the city is already congested, he faces the trouble of managing the parking space inside his restaurant. Hence, he requests you to design a program to help him. The program should entertain 3 types of queries : 1. “1 hh:mm AM/PM N “ --> hh:mm AM/PM denoting the time at which N cars enter the parking. 2. “2 hh:mm AM/PM N “ --> hh:mm AM/PM denoti

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