Question bank › Sorting
Dsa Sorting Warm-up

Temperature Logger

You are building a simple temperature logger that records daily temperatures. Each temperature value is recorded as a string. Your task is to sort the temperatures in ascending order. Duplicate values should be removed in the output. Print the unique sorted temperatures as a single line of space-separated values. Example Input: 32 25 25 30 29 32 Example Output: 25 29 30 32

Key concepts

sortingarrayssets

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.