Easy understanding python3 4 lines  using array and Dictionary
\n\n# Approach\n Describe your approach to solving the problem. \n1. Array\n2. Dictionary  \n# Complexity\n- Time complexity: O(n)\n Add your time complexity he
\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n1. Array\n2. Dictionary  \n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(n)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass ParkingSystem:\n    def __init__(self, big: int, medium: int, small: int):\n        self.parking_space = [big, medium, small]\n\n    def addCar(self, carType: int) -> bool:\n        if self.parking_space[carType - 1]:\n            self.parking_space[carType - 1] -= 1\n            return True\n            \n```\n\n- Using Dictionary (same as array) \n```\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.dict = {1: big, 2: medium, 3:small}\n\n    def addCar(self, carType: int) -> bool:\n        if self.dict[carType]:\n            self.dict[carType] -= 1\n            return Trueu        \n            \n```\n\n
['Hash Table', 'Design', 'Simulation', 'Counting', 'Python3']