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

When is the destructor called?

1082


Define stacks. Provide an example where they are useful.

1073


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1116


What are the methods of exporting a function from a dll?

1296


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].

1500


What are libraries in c++?

1131


What is the prototype of printf function?

1234


What are static and dynamic type checking?

1138


Does c++ have a hash table?

1047


What is & in c++ function?

1123


What is abstract class in c++?

1135


What is a c++ class?

1151


What is runtime errors c++?

1168


What is size_type?

1115


What is meant by forward referencing and when should it be used?

1071