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 ostream in c++?

565


Explain bubble sorting.

620


Why is main an int?

522


What is late binding c++?

536


What are the two types of polymorphism?

585






What are pointer-to-members? Explain.

622


Show the application of a dynamic array with the help of an example.

579


Write a program using display() function which takes two arguments.

601


What is private inheritance?

592


What do manipulators do?

560


Write about the stack unwinding?

623


What are the various oops concepts in c++?

588


What is the purpose of the "delete" operator?

619


Which bitwise operator is used to check whether a particular bit is on or off?

585


Explain the different access specifiers for the class member in c++.

538