Ruby Quiz #60 - Test Cases
Posted by Stephen Waits Sat, 31 Dec 2005 16:57:31 GMT
I think about all I’m going to be able to actually accomplish on this quiz is to generate a few test cases via brute force or stochastic search. That said, here they are – please let me know if you find shorter solutions so that I may update my own cases.
Update: Christer Nilsson pointed out a better solution for 300 -> 1. I’ve corrected it in my test suite.
Update: Peter Burns has updated my test code, fixing several cases, and making it a bit more data-centric. Check it out here. As a side note, my original code was output by a C++ program. Blush.
