← Amazon questions

Sort characters by frequency with single occurrences last

Filed under Amazon

Sort an array of characters such that characters with frequency > 1 appear first in descending frequency order, followed by characters with frequency == 1 in their original order of appearance.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.