4 ms·
Instead of optimizing the naive algorithm, it might make sense to use a faster substring search algorithm like Knuth-Morris-Platt... Forest for the trees.
by eschneider 4y ago
Instead of optimizing the naive algorithm, it might make sense to use a faster substring search algorithm like Knuth-Morris-Platt...
Forest for the trees.