I don’t exactly know how to explain this, but what I mean is:
'abcd' => 1
'abac' => 1
'aabbbbcc' => 2
'aaabbbccc' => 3
'aaabbccc' => 1
If multiple of those factors are possible for one string, I need the largest one of them.
I don’t exactly know how to explain this, but what I mean is:
'abcd' => 1
'abac' => 1
'aabbbbcc' => 2
'aaabbbccc' => 3
'aaabbccc' => 1
If multiple of those factors are possible for one string, I need the largest one of them.