Question bank › Sorting
Dsa Sorting Easy

Temperature Readings

You are given a list of temperature readings taken throughout a day. Your task is to sort these readings in ascending order and output the unique values. Input format: - The first line contains an integer n (1 <= n <= 1000), the number of temperature readings. - The next n lines each contain a float representing a temperature reading. Output format: - Print the unique temperature readings in sorted order, each on a new line. Example: Input: 5 12.5 15.0 12.5 15.5 14.0 Output: 12.5 14.0 15.0 15.5

Key concepts

sortingfloatslists

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.