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

Stats:

CreatedAug 21, 2022
Warriors Trained15
Total Skips0
Total Code Submissions32
Total Times Completed9
JavaScript Completions9
Total Stars0
% of votes with a positive feedback rating43% of 7
Total "Very Satisfied" Votes2
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes3
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • dandrok Avatar
Ad