← All problemsSign in

Sub-string Count

You are given a task to read a text "M". This text M can contain any kind of character from alphabets, numbers to special characters. Your teacher tell you to look for a word say "N" in the text "M". The word "N" may contain alphabets, numbers or special characters. You are also having an assignment to report the number of times the word "N" occurs in text "M". Format for Test Case: Note: Inpu

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