Get to the point
CodeChefOpen on judge ↗
Lets get to the point directly. Preeti loves a string if the string has b's, which are immediately followed by a. And we know that Kabir loves Preeti and hence Kabir loves those strings too :). Hence he is interested in calculating the number of b's in a string which are immediately followed by a. But since he is a medical student and does not know how to do this, he asks for your help. ###Input
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