Halloween Sale
Unlock all premium questions for over 30% off
Custom Alphabet String Sorting
Easy
Question
The string customOrder spells out a made-up alphabet, and words is a list of strings to arrange in lexicographical order under it. Characters are ranked by their position in customOrder, not by the usual alphabet: whichever character appears earlier there ranks first.
...
Asked at:Amazon
More Amazon interview questions
- Password Similarity Checkmedium
- Pascal Triangle Digit Encryptioneasy
- Maximum Server Set Stabilitymedium
- Bring Down All Serversmedium
- Maximize Assigned Negative Signseasy
- Count Distinct Password Variantseasy
- Get Daily Total Requestsmedium
- Find Minimum Reverse Operationsmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.