AmazonCoding·30 minMembers
Frequency-Priority Error Code Sort
Members only
Sort an integer array of error codes by ascending frequency (rare codes first); break ties by smaller numeric value. Output is the original list re-ordered (duplicates preserved).
SWE
array
hashmap
easy
Frequency
Single report
Last asked
2026-03-23
Stage
oa
Log in to continue reading the full content
