Exercises/#80 Largest Number
#80

Largest Number

MediumπŸ”’ Math & Numbers
80 XP

Problem

Given a list of non-negative integers, arrange them to form the largest number and return it as a string.

Examples

Input: nums=[10,2]
Output: '210'

Input: nums=[3,30,34,5,9]
Output: '9534330'
sortingmathstring
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

80 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features