Algorithm for string
807569May 15 2006 — edited May 15 2006Hi,
I have a large String an I need a function like this
String [] f(String str, length L, int frequency)
I need all the subStrings in str with a length L or more and these substrings have to repeat "frequency" times or more in str.
Exemple:
f("abcdfhduewwwwwhdjabcdsjwwwwwdjidiejiabcdje",4,2)
gives ["abcd","wwwww"]
Thank you.