Friday, June 10, 2005

The Amazing Self-Correcting Algorithm

I forgot that I had already started LCS, but that it wasn't 100% correct yet. I thought that perhaps LCS just needed optimizations, so I submitted the code I had to ETP, looking for whether the problem with it was "incorrect answer" or "ran too slow." Imagine my surprise when it tells me instead:

Your answer was graded automatically.
Your answer received a score of 100 out of 100.
You have completed this problem.

Well, damn. I like it when supposedly non-functioning code works perfectly instead. Two to go by tomorrow night — I might even make it! :)