Largest number from concatenation
Your task
Given a list of non-negative integers nums, arrange them so that concatenating their decimal representations forms the largest possible number, and return that number as a string. If the result would be all zeros (e.g. [0, 0]), return "0".
Examples
largest_concat_number(nums: list[int]) -> strExample 1
Input
largest_concat_number([10, 2])Output
"210"