Double Substring2
Find a length the longest substring that repeats more than once.
Input: String.
Output: Int.
Example:
double_substring('aaaa') == 2
double_substring('abc') == 0
double_substring('aghtfghkofgh') == 3 # fgh
Find a length the longest substring that repeats more than once.
Input: String.
Output: Int.
Example:
double_substring('aaaa') == 2
double_substring('abc') == 0
double_substring('aghtfghkofgh') == 3 # fgh