Help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me

How to solve this 👉 Input string TommyIsplayingInThehouseOftommyWithTommy Output 3 Here Tommy occur 3 time so o/p is 3 (case insensitive) Input codingIsfunCODINGisNotThatEasy output 2 Coding occur 2 times

17th Sep 2022, 11:50 AM
Shivam Shiva
Shivam Shiva - avatar
2 Answers
+ 2
The task description is incomplete. Please clarify. Give the complete task description, example input and output and LINK YOUR CODE ATTEMPT.
17th Sep 2022, 12:13 PM
Lisa
Lisa - avatar
+ 1
No, "Tommy" only occur twice, unless you're doing case insensitive comparison.
17th Sep 2022, 1:11 PM
Ipang