0 ms, faster than 100.00% || C++ || O(N)
\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> ans;\n        string str="";\n        for(int
```\nclass Solution {\npublic:\n    vector<string> divideString(string s, int k, char fill) {\n        vector<string> ans;\n        string str="";\n        for(int i=0;i<s.size();i++){\n            str+=s[i];\n            if((i+1)%k==0){\n                ans.push_back(str);\n                str.erase();\n            }\n            \n        }\n        if(str.size()>0){\n            while(str.size()!=k){\n                str+=fill;\n            }\n            ans.push_back(str);\n        }\n        \n        \n        return ans;\n    }\n};\n```
['C']