← All problemsSign in

One Plus

Long ago, lived a wise King. King wanted to appoint a new chief minister for his kingdom, so he decided to test the wisdom of three ministers whom he found capable of becoming one. So he asked them a question. Now you choose a minister and try to help him. You are given a large integer represented as an integer array of digits, with each digit I representing the integer's $i$ th digit. In left-to-

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