Use in C program language Literally Sorting Given an array of N integers A 1 , A
Fantastic news! We've Found the answer you've been seeking!
Question:
Use in C program language
Literally Sorting
Given an array of N integers A1, A2, ..., AN. Sort the integers in ascending order.
Input Format
The first line contains an integer T, the number of test cases.
Each test case consists of 2 lines. The first line contains a single integer N, denoting the number of integers in the array. The next line contains N space-separated integers, the array of integers.
Constraints
1 ≤ T ≤ 3 x 104
1 ≤ N ≤ 103
1 ≤ Ai ≤ 102
Output Format
Print T lines of output. For each lines, print N space-separated integers A1, A2, ..., AN, the sorted array.
Sample Input 0
2
5
4 2 3 1 5
4
3 1 4 2
Sample Output 0
1 2 3 4 5
1 2 3 4
Related Book For
Fundamentals of Physics
ISBN: 978-0471758013
8th Extended edition
Authors: Jearl Walker, Halliday Resnick
Posted Date: