Simple c++ Solution | 100% faster
class Solution {\npublic:\n    vector divideString(string s, int k, char fill) {\n        string t;\n        vectorres;\n        for(int i=0;i<s.size();i++)\n  
class Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        string t;\n        vector<string>res;\n        for(int i=0;i<s.size();i++)\n        {\n            t+=s[i];\n            if(t.size()==k)\n            {\n                res.push_back(t);\n                t="";\n            }\n        }\n        if(t.size()!=0)\n        {\n            while(t.size()!=k)\n                t+=fill;\n            res.push_back(t);\n        }\n        return res;\n    }\n};
['C']