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.
4 11157Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
1 5047
Does c++ have finally?
Explain function overloading
What is #include iostream in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Does c++ have string data type?
What problems might the following macro bring to the application?
what is data abstraction in C++?
Define pointers?
What are the fundamental features of an object-oriented language?
What is protected inheritance?
sir please send me bpcl previous question papers
what are the events occur in intr activated on interrupt vector table
What are default parameters? How are they evaluated in c++ function?
How do you establish an is-a relationship?
What is abstraction in oops with example?