Amit and Kisses
CodeChefOpen on judge ↗
Amit love kisses. His girlfriend asked him to complete a task. If he does, she will give him kisses. She gives a string S and a pattern P and asked him to find count of occurances of pattern P in the string S. She told him to consider the count if at least first half of the pattern P matches with substring of S of length equal to length of pattern or at least last half of the pattern matches with
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