Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 791. Custom Sort String
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.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late October, 2025
Meta
Mid-level
Late September, 2025
Meta
Mid-level
Early August, 2025
Meta
Senior
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.