Retired
easy repeated substring (retired)
Description:
For a given nonempty str
find a minimum substring and the maximum number of this str
, such that the entire str
is equal to repeated times.
The input string consists of lowercase latin letters.
substring does not have repetitive letters.
Here is an example of almost similar but more challenging task.
Example:
str = "zyzyzy";
// should return ['zy',3]
Algorithms
Strings
Similar Kata:
Stats:
Created | Aug 21, 2022 |
Warriors Trained | 15 |
Total Skips | 0 |
Total Code Submissions | 32 |
Total Times Completed | 9 |
JavaScript Completions | 9 |
Total Stars | 0 |
% of votes with a positive feedback rating | 43% of 7 |
Total "Very Satisfied" Votes | 2 |
Total "Somewhat Satisfied" Votes | 2 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |