Given a list of non-negative integers, arrange them such that they form the largest number.Problem Constraints
Note: The result may be very large, so you need to return a string instead of an integer.
1 <= |A| <= 105Input Format
0 <= Ai <= 109
The first argument is an integer array A.Output Format
Return a string representing the largest number formedExample Input
A = [3, 30, 34, 5, 9]Example Output
Largest possible number that can be formed is 9534330
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified.
Still have a question? Checkout Sample Codes for more details.