Largest Number
CodeChefOpen on judge ↗
Arvind loves playing with Numbers. He has a sequence $[A_1, A_2, ..., A_N]$ of $N$ integers. He wants to reduce the length of the sequence to 1. To do that, he performs exactly $N - 1$ moves, where a move is defined as follows. - Pick two Integers $A_i$ and $A_j$, $i \ne j$, remove them from the sequence and append the result obtained by concatenating the Integers to the sequence. He wonders wha
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.
Sign in to chat with the tutor and save your progress.
Sign in to start