Problem 2138 · Easy

Divide a String Into Groups of Size k

Split a string into groups of length k, padding only the final short group.

Open the interactive visualisation