✅ [Solution] Swift: Design Parking System
swift\nclass ParkingSystem {\n    private var dict: [Int:Int] = [:]\n    \n    init(_ b: Int, _ m: Int, _ s: Int) {\n        [b,m,s].enumerated().forEach {\n   
```swift\nclass ParkingSystem {\n    private var dict: [Int:Int] = [:]\n    \n    init(_ b: Int, _ m: Int, _ s: Int) {\n        [b,m,s].enumerated().forEach {\n            dict[$0 + 1] = $1\n        }\n    }\n    \n    func addCar(_ t: Int) -> Bool {\n        dict[t, default: 1] -= 1\n        return (dict[t] ?? 0) >= 0\n    }\n}\n```
['Swift']