Sort string based on another string
Filed under Fidelity Investments
The question
Sort the first string based on character occurrences in the second string; characters not in the second string should be appended at the end in original order.
No write-up yet. Related questions below have one.
Related Fidelity Investments questions
Collected from public candidate posts and coding forums. Updated Nov 2026.