Search
⌘K
Get Premium
Leetcode 2138. Divide a String Into Groups of Size k
Partition the string s into consecutive groups of size k and return those substrings, padding the final group with the given fill character as many times as needed to reach length k.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.