Easiest C++ Code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(n)\n- Each method takes O(1) time.\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass ParkingSystem {\npublic:\nint car[3];\n    ParkingSystem(int big, int medium, int small) {\n        car[0]=big;\n        car[1]=medium;\n        car[2]=small;\n        \n    }\n    \n    bool addCar(int carType) {\n        if(carType==1 and car[0]>0){\n            car[0]--;\n            return 1;\n            \n        }\n        else if(carType==2 and car[1]>0){\n            car[1]--;\n            return 1;\n        }\n        else if(carType==3 and car[2]>0)\n        {\n            car[2]--;\n            return 1;\n        }else\n        return 0;\n        \n    }\n};\n\n/**\n * Your ParkingSystem object will be instantiated and called as such:\n * ParkingSystem* obj = new ParkingSystem(big, medium, small);\n * bool param_1 = obj->addCar(carType);\n */\n```
['Design', 'Counting', 'C++']