Re: Puzzle

Discussion in 'C Programming' started by Alf P. Steinbach, Jul 29, 2003.

  1. On 29 Jul 2003 15:18:15 -0700, (Ramgopal) wrote:

    >You're given an array containing both positive and negative integers
    >and required to find the sub-array with the largest sum (O(N) a la
    >KBL). Write a routine in C for the above.


    Regarding "KBL": what the **** is that?
    Regarding the algorithm part: it's possible, yes. Hint: accumulation.
    Regarding the C coding: that's trivial.

    Now I just hope that nobody is stupid enough to do your homework
    for you.
     
    Alf P. Steinbach, Jul 29, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob
    Replies:
    3
    Views:
    6,652
    Nedu N
    Aug 6, 2003
  2. dwa

    Design Puzzle!

    dwa, Jun 10, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    369
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jun 10, 2004
  3. Shankara Narayanan

    Booking puzzle....

    Shankara Narayanan, Jun 17, 2004, in forum: ASP .Net
    Replies:
    20
    Views:
    931
    bredal Jensen
    Jun 30, 2004
  4. VB Programmer
    Replies:
    2
    Views:
    430
    Alan Lambert
    Nov 4, 2004
  5. G. Stewart

    regex puzzle!

    G. Stewart, Nov 23, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    518
    G. Stewart
    Nov 25, 2004
Loading...

Share This Page