BEST SOLUTION 100% BETTER AND SMALLER THAN EVERYONE ELSES
\n# Complexity\n- Time complexity:\nn\n\n- Space complexity:\nn\n\n# Code\n\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<str
\n# Complexity\n- Time complexity:\nn\n\n- Space complexity:\nn\n\n# Code\n```\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> fizzBuzz;\n        string temp;\n            for(int i=1; i <=n; i++){\n                string temp = "";\n                if( i % 3 == 0 || i % 5 == 0){\n                    if( i % 3 == 0 )\n                        temp = "Fizz";\n                    if ( i % 5 == 0)\n                        temp = temp + "Buzz";\n                }\n                else\n                    temp = to_string(i);\n                fizzBuzz.push_back(temp);\n            }\n        return fizzBuzz;\n    }\n};\n```
['C++']