Parking Woes
CodeChefOpen on judge ↗
There is a new mall in the city and customers have one floor of parking available in its basement. The parking lot consists of m rows of n parking slots each. When owners come back where (s)he has parked his/her car they may have to examine mXn cars in the worst case to find the car. In order to attract customers, the mall has decided to ease this trouble by hiring a new parking lot attendant to
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