Problem
Input format
The first line contains the natural number `n`. The following lines (separated by spaces or newlines) contain the `n` integers. - `1 <= n <= 100` - the values are integers with at most 4 digits (possibly with sign) - the subprogram `interschimba` must be defined explicitly, with parameters of pointer type (`int*`)
Output format
The program prints to standard output the `n` numbers sorted in ascending order, separated by single spaces, followed by a newline.
Example
5 3 1 4 1 5
1 1 3 4 5
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
5 3 1 4 1 5
1 1 3 4 5
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.