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
why nlogn is the lower limit of any sort algorithm?
Sir... please give some important coding questions asked by product companies..
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
could you please send the program code for multiplying sparse matrix in c????
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
How to palindrom string in c language?
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
Develop a routine to reflect an object about an arbitrarily selected plane
how to test pierrot divisor
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.
write a program for area of circumference of shapes
Write a program to model an exploding firecracker in the xy plane using a particle system
What is full form of PEPSI