https://leetcode.cn/problems/design-parking-system/
class ParkingSystem {
int[] intArr = new int[4];
public ParkingSystem(int big, int medium, int small) {
intArr[1] = big;
intArr[2] = medium;
intArr[3] = small;
}
public boolean addCar(int carType) {
if (intArr[carType] > 0) {
intArr[carType]--;
return true;
}
return false;
}
}