C++||easy to understand
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        \n        if (s.length()%k!=0)\n        {\n             whil
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        \n        if (s.length()%k!=0)\n        {\n             while(s.length()%k!=0)\n             {\n                 s = s + fill;\n             }\n                  \n        }\n        vector<string>v;\n        string s1;\n        int d=0;\n        for (int i=0;i<s.length();i++)\n        {\n             s1 = s1 + s[i];\n            d++;\n             if (d==k)\n             {\n                  v.push_back(s1);\n                 d=0;\n                 s1 = "";\n             }\n        }\n        return v;\n        \n    }\n};\n```
['C']