For what it's worth, my algorithm came up with the same answer as Dan's for
the 7 bridge 2 cake case, but comes up with a different answer for the 1
bridge 3 case case:
   +:@<:^:7: 2

   +:@<:^:1: 3

-- 
Raul




On Mon, Jun 9, 2014 at 2:06 PM, greg heil <[email protected]> wrote:

> Dan
>
> >Rounding amongst Trolls is pretty peculiar;) Say you wanted to give
> Granny 3 cakes and only had to cross one bridge ...  Your algorithm says
> you only need start with 2.5 cakes! (Kinda unhygienic on the offspring's
> part;-)
>
> greg
> ~krsnadas.org
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to