The Jumbled Addition
CodeChefOpen on judge ↗
Alice and Bob are playing a game. Bob has a number _n_. Bob challenges Alice to obtain another number _s_ by adding some number _t_ to _n_. But the number _t_ can only comprise of digits of the number _n_ (there can be no leading zeros). In other words, Alice will win the game if she can find a number _t_ that is obtained by reordering the digits (the rearrangement can be equal to the initial nu
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