Try Harder
CodeChefOpen on judge ↗
Mr. Sinha is a intelligent guy and recently he got a very high package job offer. After this, he also got committed with a beautiful girl. But,before the commitment day, Mr. Sinha was challenging himself by manipulating a string with some other string. As challenges always teach you something, he was very close to learn to find the number of times a string W occur in a string S. Mr. Sinha loves t
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