← All problemsSign in

Product of Digits

The natural numbers begin from 1 and go on up to $∞$. Given $N$ indices, find the product of the digits that lie on those indices. **NOTE**: - Consider that the natural numbers are zero-indexed i.e. the index of the first number in the set of natural numbers is 0, the index of the second number is 1 and so on. - Consider that all the natural numbers are written like a string '12345678910

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