Python | HashMap | EASY PEASY
python\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.spaces = {1: big, 2:medium, 3:small}\n\n    def addCar(
```python\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.spaces = {1: big, 2:medium, 3:small}\n\n    def addCar(self, carType: int) -> bool:\n        if self.spaces[carType] == 0:\n            return False\n        self.spaces[carType] -= 1\n        return True\n```
['Python']