Rearrange K Substrings to Form Target String

mediumSolve on LeetCodeLast edited: August 2, 2025