LeetCode Daily Challenge-2138. Divide a String Into Groups of Size k
Problem description
Algorithm walkthrough
Input and output
The divideString method takes three parameters:
s: The input string to be divided
k: The size of each group
fill: The character used to pad the last group if needed
And we need to return the...
huanganni.hashnode.dev2 min read