Available question text
Reorder string s to follow the custom precedence defined by string order: every character that appears in order must appear in s in that relative sequence, while characters not in order can be placed anywhere. The task is essentially to apply a custom priority mapping over lowercase letters and produce any permutation of s that respects that precedence.
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 · 2 records
Merge
Leetcode 791. Custom Sort String
Reported Jul 6, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View sourceMeta
Leetcode 791. Custom Sort String
Reported Feb 25, 2026 · 20 source reports
MID_LEVEL, SENIOR, STAFF
Source snapshot: Nov 12, 2026
View source