Largest number from pieces
nums is a list of non-negative whole numbers. Write largest_number(nums) that
arranges them, as strings joined together, to make the largest possible number, and
returns it as a string.
largest_number([10, 2]) -> "210"
largest_number([3, 30, 34, 5, 9]) -> "9534330"
largest_number([0, 0]) -> "0"
The point is to practise sorting with a custom notion of order. Comparing a + b
against b + a decides which of two pieces should come first.
def largest_number(nums):
...