Design Parking System
A parking lot has a given number of big, medium and small spaces. addCar type (1 = big, 2 = medium, 3 = small) parks a car in a space of its own type if one is free. Print true or false for every addCar.
Constraints
0 <= spaces <= 1000 1 <= q <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.