Iteration Challenge
CodeChefOpen on judge ↗
Sudarshan is good in coding and solves coding problem very fast, so to challenge him Yash gave him a special sequence and asked him to find the nth element of the sequence. The sequence has a special property that if the sequence starts with k than the next element of a sequence is "$K$ + ($the$ $product$ $of$ $the$ $nonzero$ $digits$ $of$ $K$)". For example, if k is 6 then the next elements seque
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