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

Program to find the largest sum of contiguous integers in
the array. O(n)

Answer Posted / dilip

i think ths program doesnt not work when the sum is
negative.. cant we not work around it by setting the max as
somelarge negative value and comparing with that??

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why nlogn is the lower limit of any sort algorithm?

2848


Sir... please give some important coding questions asked by product companies..

2263


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3359


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3538


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4526


could you please send the program code for multiplying sparse matrix in c????

3585


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3643


How to palindrom string in c language?

11098


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2912


Develop a routine to reflect an object about an arbitrarily selected plane

3615


how to test pierrot divisor

2762


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2680


write a program for area of circumference of shapes

2573


Write a program to model an exploding firecracker in the xy plane using a particle system

4142


What is full form of PEPSI

2419