Task on String Counting
CodeChefOpen on judge ↗
Problem description. Jeff and Jenny are playing a game of UNO in a condition that whoever loses will need to do a task. In the first game, Jenny loses the game. Jeff is very strong in counting the number of times a given string is present in the sentence. Thus, he decides to trick her by giving a string puzzle and asking her to solve it. He gives Jenny a word and asks her to find the number of ti
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