Re: How to find the maximum sum of atleast L consecutive integers given a sequence of N integers.



vb@xxxxxxxxx wrote:
) Well William,

Willem. I'm Dutch.

) First of all , i am not a student .. I was just solving these problems
) out of fun and got stuck on this one .. So after thinking for some time
) only I have asked for help..
) And regarding searching the solution - yeah i have tried searching
) usenet and web, but without any results. Would be great if you could
) give a link instead of rebuking around ..

Well if you're solving them for fun, you probably will want a hint
instead of a link to a complete solution, right ?

Here's a hint:

Draw the points of the array as a graph. Then, if you want the sum
from one point to another, draw two vertical lines at those points.
Now, doesn't that picture remind you of something, in a mathematical sense ?


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.



Relevant Pages

  • Re: Program compression
    ... -3- By solving just one task completely, then adding parametrized code ... to the existing solution to create the variants as you go along. ... You all think I'm paranoid, ...
    (comp.programming)
  • Re: Checkers is solved -Guy Macon
    ... only solving for the result (win, loss, draw), fine. ... which leads to a win for one player or a draw or a game that ... If there is a forced win or draw for white, the first player ...
    (rec.games.chess.misc)
  • Re: Problem with integral
    ... I have choosen x^3 as the inner function: ... I isolate x and get: ... Hope someone can give a hint. ... Instead of solving for x in terms of ), ...
    (sci.math)
  • Re: My Homework: how to calculate natural log, e?
    ... > I might go solving the problem by asking around, ... Hint #3: One traditional way to solve these types of problems is to ... derive the next term to be added from the last calculated term. ...
    (comp.lang.fortran)
  • Re: using the mouse
    ... explain everything you need to know about solving this problem. ... Catch the WM_PAINT message of the window you want to draw the lines in, ... and draw them using the points in array. ... WM_MOUSEMOVE messages in that window. ...
    (microsoft.public.vc.mfc)