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
How would you obtain segment and offset addresses from a far address of a memory location?
What is the difference between structures and unions?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
When can I use a forward declaration?
Why c++ is created?
What is data hiding c++?
Is c++ a difficult language?
Why is standard template library used?
What is a memory leak c++?
How does class accomplish data hiding in c++?
What is the best way to declare and define global variables?
Why was c++ made?
What is the use of setfill in c++?
Is atoi safe?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor