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
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Define pre-condition and post-condition to a member function in c++?
What is encapsulation in c++ with example?
What is private public protected in c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
How can I learn dev c++ programming?
Explain all the C++ concepts using examples.
What is the use of default constructor?
Explain the difference between new() and malloc() in c++?
What are single and multiple inheritances in c++?
Explain the problem with overriding functions
why is c++ called oops? Explain
How do you differentiate between overloading the prefix and postfix increments?
What are c++ manipulators?
Define vptr.