About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.



Entry #100264: HashCalc Pro

by Michael Quinn
HashCalc Pro initially does calculations the same way you learned in elementary school, but the real efficiency comes from the hash table. Every time you perform a calculation, the result is stored in a hash table for efficient calculation later. Even better, no memory or CPU time is wasted checking for hash table collisions; that stuff never happens anyway when you have a 317-element hash table.
As for the name of the calculator, it was originally going to be HashCalc but I added "Pro" because "Pro" makes it sound important.

Download0 Comments