Given a list of integers, sort them based on the frequency of each digit (0-9) in the absolute value of each number. The frequency of each digit is counted, and numbers are sorted first by the highest frequency of any single digit and then by their numerical value in ascending order.
Non-comparison based sorting
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak