Best solution
```\nclass Solution {\npublic:\n    vector fizzBuzz(int n) {\n        vector res;\n        string ans="";\n        string fizz="Fizz";\n        string buzz="Buz
```\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> res;\n        string ans="";\n        string fizz="Fizz";\n        string buzz="Buzz";\n        for(int i=1;i<=n;i++){\n            ans="";\n            if(i%3==0) ans+=fizz;\n            if(i%5==0) ans+=buzz;\n            if(ans.length()==0){\n                ans=to_string(i);\n            }\n            res.push_back(ans);\n        }\n        return res;\n    }\n};
['C']