Think of the simplest version of the problem that isn't totally trivial. e.g. A one dimensional list of numbers.
What would you do? Note: you only want to touch each element once. The 2 dimensional case could be handled by putting into lists: rows, columns, major diagonals, and minor diagonals. This isn't the fastest way of doing the problem but it has the advantage of avoiding "indexitis". On Fri, Aug 26, 2011 at 6:15 PM, Oscar Picasso <[email protected]> wrote: > Like: > 20*19*21*18 > is bigger than > 100*100*3*2 > ? > > If so I need to think about how to formalize it. > > Thanks for the hint. > > On Fri, Aug 26, 2011 at 8:55 PM, KC <[email protected]> wrote: >> Is Problem 11 the 4 consecutive #'s problem? >> >> If so what must be true for 4 #'s to have a large product? >> >> Hint: x * y * z * 2 is that going to be larger? >> >> -- >> -- >> Regards, >> KC >> > -- -- Regards, KC _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
