algorithms
algorithms copied to clipboard
Add all_indices option to kmp
Finding all the pattern indices using this KMP algorithm would be super helpful. I added the functionality behind the all_indices flag in the kmp_search method, so this change should be backward compatible.
Let me know if there are any changes you would prefer to make this more likely to be merged. Thanks!