Brainbench perl test?

Will Crawford billcrawford1970 at gmail.com
Tue Sep 4 14:38:01 BST 2012


On 4 September 2012 14:27, Jasper <jaspermccrea at gmail.com> wrote:
> On 4 September 2012 14:12, Piers Cawley
> <pdcawley-london.0dd185 at bofh.org.uk> wrote:
...
>> Or, in an attempt to really drive it home:
>>
>>     blarg(n) is equal to blarg( n - 1 ) * 2  +  blarg( n - 2 )
>>
>> There you go. Not the Fibonacci sequence, but still a recursive
>> definition, trivially implementable with a recursive condition given a
>> couple more bits of knowledge (the values of blarg(0) and blarg(1)).

> Aha! A couple more bits of knowledge. Now my machine can stop dying
> when I run my program.
>
> The question as originally described is a starting point to deciding
> if someone can think logically, but it does not fully describe the
> problem.

The point most of us are trying to make is that a programmer who
doesn't *ask* you for those "bits of knowledge" hasn't understood the
question sufficiently :)


More information about the london.pm mailing list