Tap here to switch tabs
Problem
Submissions

Problem: Largest Number

Largest Number asks you to rearrange non-negative integers in an array so their concatenation forms the greatest possible number, returned as a string.

Statement

Given a list of non-negative integers, nums, rearrange them so that they form the largest possible number. As the result may be very large, return it as a string.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 0≤0 \leq nums[i] ≤103\leq 10^{3}

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Largest Number

Largest Number asks you to rearrange non-negative integers in an array so their concatenation forms the greatest possible number, returned as a string.

Statement

Given a list of non-negative integers, nums, rearrange them so that they form the largest possible number. As the result may be very large, return it as a string.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 0≤0 \leq nums[i] ≤103\leq 10^{3}