← All problemsSign in

Largest possible number

Given a list of non negative integers, arrange them such that they form the largest possible number. For example, given [0, 1, 2, 3], the largest formed number is 3210.   Example 2: [ 2,52,4,1] the largest number formed is 52421 Example 3: [ 3,58,6,0] the largest number formed is 65830 ### Input The first line contains one integer N. Second line contains N space separated integers. ### Outpu

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start