Quote:
Originally Posted by DrakilorP2P
Assuming that the algorithm should find the number of occurrences of a string in another string.
|
Nooooooot quite.
Quote:
Originally Posted by cbkbud
Okay, I have mine finished. It takes about 5 seconds to run (go figure!) but it gets the right answer, at least from what I have seen.
|
This is closer (

), but no doubt we can do better. ~
O(n³)