C++ solution, 3ms
\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> ret_vec(n);\n        for(int i=1; i<=n; ++i)\n        {\n            i
```\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> ret_vec(n);\n        for(int i=1; i<=n; ++i)\n        {\n            if(0 == i%3)\n            {\n                ret_vec[i-1] += "Fizz";\n            }\n            if(0 == i%5)\n            {\n                ret_vec[i-1] += "Buzz";\n            }\n            if(ret_vec[i-1].empty())\n            {\n                ret_vec[i-1] += to_string(i);\n            }\n        }\n        return ret_vec;\n    }\n};\n```
[]