Available question text
Given anagram strings s and t and an integer k (with |s| divisible by k), determine whether you can split s into k equal-length contiguous substrings and permute those substrings to form t. The core challenge is to check whether the multisets of length-|s|/k substrings obtained from s and t are identical (efficiently, since |s| can be up to 2e5).
Related questions
Continue with questions that share topics or the same question type.
- Number of Ways to Form a Target String Given a Dictionary
Coding · Array · Dynamic Programming · String
- Rearrange Characters to Make Target String
Coding
- Binary String With Substrings Representing 1 To N
Coding
- Check if String Is Decomposable Into Value-Equal Substrings
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3365. Rearrange K Substrings to Form Target String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source