Available question text
Reorder the array so integers with lower occurrence come first, and when frequencies tie place larger numbers before smaller ones. This is solved by counting frequencies (hash map or counting array) and sorting the elements with a custom comparator that uses (frequency ascending, value descending).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1636. Sort Array by Increasing Frequency
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source