I did mine with a good dose of humor.
I certainly know that my weirdo_exhaustive is slow… hell, I called it
both “weirdo” and “exhaustive”. However, I thought of the fast solution
as a bit of humor for everyone to enjoy. I do think it has merit in
some ways only because its damn hard to make anything go faster than
that.
I did not mean any previous comments to be “i’m better than you” in any
real way. They were all made tounge in cheek because of course just
accessing an array is going to be orders of magnatude faster.
These quizes are not for points and there is no “winner” (at least not
that i’ve seen assigned in previous iterations of the quiz. In fact,
there is never any qualifications for what makes the best one!
And yes, I did use the wrong number set. I found the number set for
primitive weird numbers, not exhaustive.
I used this:
As opposed to this:
My mistake…
But, lets all be friends! How about a beer?
-hampton c.