Easy C++ solution
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int i=0;\n        vector<string>ans;\n        while(i<s.leng
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        int i=0;\n        vector<string>ans;\n        while(i<s.length()) {\n            string tmp="";\n            while(tmp.length()<k && i<s.length()) {\n                tmp.push_back(s[i++]);\n            }\n            if(tmp.length()!=k) {\n                while(tmp.length()<k) {\n                    tmp.push_back(fill);\n                }\n            }\n            ans.push_back(tmp);\n        }\n        return ans;\n    }\n};\n```\n***Please upvote if you have got any help from my code. Thank you.***
['C']