Rearrange K Substrings to Form Target String

mediumSolve on LeetCode
Last edited: August 2, 2025