3365. Rearrange K Substrings to Form Target String
Medium50.5% Acceptance
Sponsored
Sponsored
Problem Hints
Use these hints if you're stuck. Try solving on your own first.
1
Hint 1
Split <code>s</code> into <code>k</code> equal-sized substrings, use a map to track frequencies, and check if rearranging them can form <code>t</code>.