🧩 Swift || Simple switch-case solution 29ms
\nclass Solution {\n    func fizzBuzz(_ n: Int) -> [String] {\n        var output: [String] = []\n        for num in 1...n {\n            switch (num%3, num%5) 
```\nclass Solution {\n    func fizzBuzz(_ n: Int) -> [String] {\n        var output: [String] = []\n        for num in 1...n {\n            switch (num%3, num%5) {\n            case (0, 0): output.append("FizzBuzz")\n            case (0, _): output.append("Fizz")\n            case (_, 0): output.append("Buzz")\n            default: output.append(String(num))\n            }\n        }\n        return output\n    }\n}\n```
['Swift']