Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Algorithm for string

807569May 15 2006 — edited May 15 2006
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2006
Added on May 15 2006
1 comment
109 views