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.

Answer Posted / gopika

how to get O(N) for above program

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is setw manipulator in c++?

700


What are single and multiple inheritances in c++?

667


What is the basic concept of c++?

659


Explain method of creating object in C++ ?

686


Is map sorted c++?

621






What is microsoft c++ redistributable 2013?

667


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

2054


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

812


Name the implicit member functions of a class.

700


What is prototype for that c string function?

774


Discuss the possibilities related to the termination of a program before entering the mainq method?

629


What are pointer-to-members? Explain.

718


What is c++ coding?

759


What is the use of map in c++?

723


What is the arrow operator in c++?

645