Fast Solution - Java (98% Beats)
Code\n\nclass Solution{\n    public String[] divideString(String s, int k, char fill){\n        List<String> ans = new ArrayList<>();\n        for(int i=0; i<s.
# Code\n```\nclass Solution{\n    public String[] divideString(String s, int k, char fill){\n        List<String> ans = new ArrayList<>();\n        for(int i=0; i<s.length(); i+=k){\n            StringBuilder as = new StringBuilder("");\n            if(i+k<=s.length()) as.append(s.substring(i, i+k));\n            else as.append(s.substring(i));\n            if(as.length()!=k){\n                for(int j=as.length(); j<k; j++) as.append(fill);\n            }\n            ans.add(as.toString());\n        }\n        int n = ans.size();\n        String[] arr = new String[n];\n        for(int i=0; i<n; i++){\n            arr[i] = ans.get(i);\n        }\n        return arr;\n    }\n}\n```
['Java']