6 kyu

Simple repeated words

157 of 351KenKamau

Description:

In this Kata, you will count the number of times the first string occurs in the second.

solve("zaz","zazapulz") = 4 because they are ZAZapulz, ZAzapulZ, ZazApulZ, zaZApulZ

More examples in test cases.

Good luck!

Please also try Simple time difference

Algorithms

Stats:

CreatedFeb 26, 2018
PublishedFeb 26, 2018
Warriors Trained1416
Total Skips44
Total Code Submissions3572
Total Times Completed351
JavaScript Completions185
Python Completions157
Haskell Completions26
Total Stars35
% of votes with a positive feedback rating89% of 88
Total "Very Satisfied" Votes71
Total "Somewhat Satisfied" Votes15
Total "Not Satisfied" Votes2
Total Rank Assessments3
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • KenKamau Avatar
  • docgunthrop Avatar
  • Voile Avatar
  • user8436785 Avatar
Ad