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
When is the destructor called?
Define stacks. Provide an example where they are useful.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What are the methods of exporting a function from a dll?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What are libraries in c++?
What is the prototype of printf function?
What are static and dynamic type checking?
Does c++ have a hash table?
What is & in c++ function?
What is abstract class in c++?
What is a c++ class?
What is runtime errors c++?
What is size_type?
What is meant by forward referencing and when should it be used?