Easy | Intuitive |C++
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        string w="";\n        vector<string>res;\n        int c=0;\n
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        string w="";\n        vector<string>res;\n        int c=0;\n        for(auto i : s){\n            w+=i;\n            c++;\n            if(c==k){\n                res.push_back(w);\n                c=0;\n                \n                w="";\n            }\n        }\n        int f=0;\n        while(c>0 && c!=k){\n            f=1;\n            w+=fill;\n            c++;\n        }\n      if(f==1){\n          res.push_back(w);\n      }\n        return res;\n    }\n};\n```
['C']