This question already has an answer here:
Write a function or program that given a list of non negative integers, arranges them such that they form the largest possible number.
[50, 2, 1, 9]
INPUT (Interesting one)
- standard loopholes apply.
- Depending on your language you can use
int(64)or any other numeric datatype. (Please append the chosen type to your answer)
- take a list as Input
- you choose the behavior on empty input