An interesting problem

Ovid publiustemp-londonpm at yahoo.com
Wed Jan 3 14:28:20 GMT 2007


--- Paul Orrock <paulo at digitalcraftsmen.net> wrote:

> For example a table as follows, (apologies to those not using
> monospace)
> 
>     A  B  C  D
> W   2 -3 -1  3
> X  -1  5  3 -2
> Y  -7  2 -1 -1
> Z   1  4  2  0
> 
> The area I want starts at column BX and runs down and right to column
> CZ with a total of 16.

I think I don't understand the problem.  What I see is that you have:

  5  3
  2 -1
  4  2

Summing all of those adds to 15, not 16.  What did I misunderstand?

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/


More information about the london.pm mailing list