Basic C++ implementation
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string>res;\n        int y=s.size()%k;\n        int z
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string>res;\n        int y=s.size()%k;\n        int z=k-y;\n        if(y>0){\n            while(z--){\n                s+=fill;\n            }\n        }\n        for(int i=0;i<s.size();){\n            int x=k;\n            string l="";\n            while(x--){\n                l+=s[i];\n                i++;\n            }\n            res.push_back(l);\n        }\n        return res;\n    }\n};\n```
[]