 All Problems
Largest Number
medium
strings
sorting
greedy
amazon
google
microsoft
facebook

Given a list of non-negative integers, arrange them to form the largest number and return it as a string.

Example 1:

Input:  10 2
Output: 210

Example 2:

Input:  3 30 34 5 9
Output: 9534330

Input format: Space-separated integers.

Run to check your code against the sample cases, or submit to run every case