← All problemsSign in

Even count

Rajesh has a string S and its starting index is 1. The string S consists of nine characters which care 1-9. As Rajesh is intelligent, he wants to test his brother Ram. Rajesh asked his brother Ram to count the number of even numbered characters(2,4,6,8) for every index i(1<=i<=|S|). For index i, the result should be calculated from i to the end of the string. As Ram doesn't know to the programme h

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