Re:Overlap Detection in strings, with code
by ColinWright on Monday March 05, 2012 @06:56AM
(#3666227)
OK, as requested: You've missed something.
I've just run a few naive tests and all three versions on the linked page give the same result on every test, and yours gives different results on some of the tests. In short, your code doesn't work.
I've just run a few naive tests and all three versions on the linked page give the same result on every test, and yours gives different results on some of the tests. In short, your code doesn't work.
So you've missed something.