Java 99% faster solution
\n  public String[] divideString(String s, int k, char fill) {\n        int n = s.length();\n        int No_fills = (n%k==0?0:k-(n%k));\n        int total_len =
```  \n  public String[] divideString(String s, int k, char fill) {\n        int n = s.length();\n        int No_fills = (n%k==0?0:k-(n%k));\n        int total_len = n+No_fills;\n        int count = 0;\n        StringBuilder sb = new StringBuilder(s);\n        String[] ans = new String[total_len/k]; \n        for(int i=0; i<No_fills;i++){\n            sb.append(fill);\n        }\n        s=sb.toString();\n        for(int i = 0; i<total_len;i+=k){\n            ans[count++]=s.substring(i,i+k);\n        }            \n        return ans;\n    }\n}\n```\n
['String']