✅Easiest C++ Basic Solution | Vector\Array | No advance🏆
Soluiton:\n```\nclass Solution {\npublic:\n    vector fizzBuzz(int n) {\n        vector res;\n        for(size_t i {1};i<n+1;i++)\n        {\n\t\t    //remember
**Soluiton:**\n```\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> res;\n        for(size_t i {1};i<n+1;i++)\n        {\n\t\t    //remember to pass this condition first ..not last\n            if(i%3==0 && i%5==0)\n            {\n                res.push_back("FizzBuzz");\n            }\n            else if(i%3==0)\n            {\n                res.push_back("Fizz");\n            }\n            else if(i%5==0)\n            {\n                res.push_back("Buzz");\n            }\n         \n            else \n                res.push_back(to_string(i));\n\t\t\t\t//need a string vector as output So use type conversion\n\t\t\t\t// cant pass as "i" with " "\n        }\n        \n        return res;\n    }\n};
['Array', 'Math', 'String', 'C', 'C++']