@@ -0,0 +1,748 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/design-parking-system/%0A */%0Apublic class Problem1603 %7B%0A    static class ParkingSystem %7B%0A        private int big;%0A        private int medium;%0A        private int small;%0A%0A        public ParkingSystem(int big, int medium, int small) %7B%0A            this.big = big;%0A            this.medium = medium;%0A            this.small = small;%0A        %7D%0A%0A        public boolean addCar(int carType) %7B%0A            if (carType == 1) %7B // big%0A                big--;%0A                return big %3E= 0;%0A            %7D else if (carType == 2) %7B // medium%0A                medium--;%0A                return medium %3E= 0;%0A            %7D%0A            // small%0A            small--;%0A            return small %3E= 0;%0A        %7D%0A    %7D%0A%7D%0A

Solve problem 1603