Consider an array of numeric strings where each string is a positive number with anywhere from to digits. Sort the array's elements in non-decreasing, or ascending order of their integer values and print each element of the sorted array on a new line.
Complete the bigSorting function in the editor below. It should return the sorted string array.
bigSorting has the following parameter(s):
unsorted: an unsorted array of integers as strings
The first line contains an integer, , denoting the number of strings in .
Each of the subsequent lines contains an integer string .
Each string is guaranteed to represent a positive integer without leading zeros.
The total number of digits across all strings in is between and (inclusive).
Print each element of the sorted array on a new line.
Sample Input 0
Sample Output 0
The initial array of strings is . When we order each string by the real-world integer value it represents, we get:
We then print each value on a new line, from smallest to largest.