Leetcode 2138: Divide a String Into Groups of Size k

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

Creating MineField In Unity (Part 1)

CS 373: Blog #10

How To Setup Git For Unity

Building the front-end of the web with Python

What is static analysis within CI/CD pipelines?

Python Function Guide: Day 3

New OpenJDK setting for better memory allocation.

How to Use Your Google Analytics Nano Project to Boost Your Visibility

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

Understanding Recursion | Binary Tree

Minimum Moves to Reach Target Score

Identify Complete Binary Tree — Leetcode 958

An Unconventional Approach to Determine Operator Precedence: Dijkstra’s Two-Stack Algorithm