Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the differences between list x; & list x();.

956


What is a flag in c++?

1006


Define what is constructor?

1002


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4068


How do I run a program in notepad ++?

1040


Why do we use using namespace std in c++?

1021


What is a memory leak c++?

1060


Why c++ is so important?

1020


What does override mean in c++?

1012


What are the benefits of oop in c++?

1120


What is &x in c++?

939


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6339


Discussion on error handling of C++ .

1065


What is a list c++?

1067


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2271