Leetcode 2138: Divide a String Into Groups of Size k

Example:
s = "abcdef", k = 4, fill = 'x'
Return: ["abcd", "efxx"]

--

--

--

Likes to code and to learn.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Rails ancestry gem and eager loading

Experiential Learning: Stimulate the student in you through ‘Simulations

Serverless Feature Flags 🚀

About Batch Files

There Are (Not?) Thirty-Six Ways to Sort an Array

Implementing Social-Reviews feature for an application.

Mission II Complete

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pierre-Marie Poitevin

Pierre-Marie Poitevin

Likes to code and to learn.

More from Medium

Leetcode 2121: Intervals Between Identical Elements

Sliding Window Algorithm

Minimum Moves to Reach Target Score

LeetCode 7. Reverse Integer