Available question text
Given strings s and target, return the maximum number of copies of target you can form by taking letters from s and rearranging them; the answer is found by comparing character counts in s and target and taking the minimum floor(count_s[c]/count_target[c]) over characters in target.
Related questions
Continue with questions that share topics or the same question type.
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 2287. Rearrange Characters to Make Target String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source