View Single Post
Old Feb 17th, 2006, 10:12 PM   #16
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 766
Rep Power: 3 Jimbo is on a distinguished road
Even if you understand how my code works, please write it out yourself. My version was intentionally written in very poor style so that you would not use it as I wrote it. Even if you keep the same algorithm, just write it out again so that it's readable and so that you surely understand how it works.

You could also try modifying it to report longer matches as a whole and only reporting them once (as opposed to in decreasing pieces), or also eliminating duplicate matches.
Jimbo is offline   Reply With Quote