3 ms·
Possible algorithm to detect duplicate text in a string?
Sample string: 'a quick brown fox jumps over the lazy dog a quick brown fox jumps over the lazy dog'
- dozzie 10y agoQuestion is incorrectly stated. What is a "duplicate"? Is "f" sufficient?
- waqasshabir 10y agoYou are right. It's incorrectly stated. By "duplicate" I meant the repeating of the sentence "a quick brown fox jumps over the lazy dog" as in sample string.