Python :: List
\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parkingSpace = [big, medium, small]\n\n    def addCar(self, c
```\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parkingSpace = [big, medium, small]\n\n    def addCar(self, carType: int) -> bool:\n        if self.parkingSpace[carType - 1] != 0:\n            self.parkingSpace[carType - 1] -= 1\n            return True\n        return False\n\n\n# Your ParkingSystem object will be instantiated and called as such:\n# obj = ParkingSystem(big, medium, small)\n# param_1 = obj.addCar(carType)\n```
[]