Input: -2, -2, 2, 2, -2, -2, 2, 2 Output: 32 Expected: 16
why not 8 ?
Input: -2, -2, 2, 2, -2, -2, 2, 2 Output: 32 Expected: 16
why not 8 ?
https://oj.leetcode.com/problems/largest-number/
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.
Note: The result may be very large, so you need to return a string instead of an integer.
Input: [2048]
Output: "8420"
Expected: "2048"
is this right?