Items Sort
Problem Overview
- Core task: Sort an integer array by ascending frequency, then by value.
- Input/Output: items[n] (ints); return int[n] sorted; n up to 2e5, values up to 1e6.
- Context: Frequency-based ordering in data processing or analytics.
- Company: This interview question is from Akuna interviews.
- Keywords: coding interview problem focusing on sorting and counts.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
