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

Write a recursive program to calculate factorial in c++.

619


What is setbase c++?

633


What do you mean by function and operator overloading in c++?

621


What is data structure in c++?

673


What is a local reference?

683






Write a struct time where integer m, h, s are its members?

534


Explain how functions are classified in C++ ?

817


What is flush () in c++?

587


What is the cout in c++?

563


What are proxy objects in c++?

653


How do you invoke a base member function from a derived class in which you’ve overridden that function?

592


Is swift better than c++?

548


What do you mean by translation unit in c++?

689


Is map thread safe c++?

645


What is increment operator in c++?

568