← All problemsSign in

Count it for Pankaj

Pankaj is given a small problem to code by his teacher in which he has to find how many times the given **Word B** appears in the given string **A**.But as he is busy doing some harder problems he is asking for your help. ***Note:Words can only be formed using consecutive characters of given string A.*** **Input:** First line will take T as input (number of test cases). Te

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