String
2138. Divide a String Into Groups of Size k
Given s, k, and a fill character, split s into groups of k consecutive characters, padding the last group with fill up to length k if needed. Return the groups. Slice by k, top up the tail.
Loading…