Good catch. My test framework had a couple of bugs that let me miss that. I've corrected the framework errors, corrected my logical vs bitwise xor error and added the two contributions by anon monks to the tests. It changed the rankings - snowhare4 moved from about 9th to 2nd behind anonmonk1 after fixing. However, anonmonk1 got 3 test case failures, so snowhare4 is now the fastest of the correct solutions. It's nice that the solution that is to me the most elegant is also the fastest correct solution.
anonmonk1 : 3.26 secs 100% (3 errors)
snowhare4 : 4.50 secs 138% (0 errors)
snowhare6 : 4.66 secs 143% (0 errors)
snowhare2 : 4.99 secs 153% (0 errors)
tye2 : 5.13 secs 157% (0 errors)
snowhare5 : 5.17 secs 159% (0 errors)
snowhare3 : 5.17 secs 159% (0 errors)
snowhare1 : 5.30 secs 163% (0 errors)
saintmike1 : 6.36 secs 195% (0 errors)
tye1 : 7.21 secs 221% (0 errors)
saintmike2 : 7.54 secs 231% (0 errors)
knom1 : 13.41 secs 411% (0 errors)
strat1 : 13.41 secs 411% (0 errors)
ikegami1 : 13.50 secs 414% (0 errors)
jamesnc1 : 14.86 secs 456% (0 errors)
strat2 : 15.05 secs 462% (0 errors)
tanktalus1 : 15.49 secs 475% (0 errors)
ph713_1 : 20.21 secs 620% (0 errors)
davido1 : 21.96 secs 674% (0 errors)
|