← All problemsSign in

Canny Chhavi

Problem description. Chhavi has a string S and its starting index is 1. The string S consists of characters from 1−9. As she is very canny, she wants to test his brother Vinay. She asked her brother Vinay to count the number of even numbered characters ( i.e 2,4,6,8 ) for every index i(1≤i≤|S). For an index i, the result should be calculated from i to the end of the string. As Vinay doesn't know

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