Question bank › Sorting
Dsa Sorting Warm-up

The App Store Rankings

An app store ranks apps based on user satisfaction. Sort the apps by their Star Rating (1.0 to 5.0, highest first). If the ratings are identical, sort by the number of Downloads (highest first). If both are identical, sort the App Names alphabetically. Input: First line N. Next N lines: AppName Rating Downloads. Output: The names of the apps in ranked order. Example Input: 3 GameA 4.5 1000 GameB 4.5 2000 AppC 5.0 500 Example Output: AppC GameB GameA

Key concepts

sortingdata types

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.