29: Largest Number

Given an array of nonnegative integers, rearrange the items to get the largest number

 

Example 1

Input: [15, 3, 9]

Output: 9315

Example 2

Input: [70, 1, 7]

Output: 7701
Difficulty:Medium
Topic:Sorting
Problem #:29