[Shootout-list] Ackermann

John Skaller skaller@users.sourceforge.net
Mon, 20 Jun 2005 08:04:14 +1000


On Sat, 2005-06-18 at 16:20 +0100, Jon Harrop wrote:

> > > (b) have a minimum of 3 integer parameters
> 
> What's wrong with 1 integer value?

Pre-computed values easily fit into an array.

YOu could certainly pre-compute values less
than a value, do the calculation for greater
or equal, and reap the benefit in the Shootout
because you know that it will be using smallish n.