Available question text
Rearrange an alphanumeric string so letters and digits strictly alternate (no two adjacent characters of the same type) and return any valid permutation or an empty string if impossible. This is only possible when the counts of letters and digits differ by at most one, so you must interleave the two groups starting with the more frequent.
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 1417. Reformat The String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source