Python | hashmap
\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parking = {1: big, 2: medium, 3: small}\n\n    def addCar(sel
```\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parking = {1: big, 2: medium, 3: small}\n\n    def addCar(self, carType: int) -> bool:\n        if self.parking[carType]: \n            self.parking[carType] -= 1\n            return True\n        else: return False\n```
[]