Form the Largest Number

Given an array of non-negative integers nums, rearrange them so that their decimal concatenation forms the largest possible number.

Because the result may exceed standard integer ranges, return it ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: