STL (140)
OOPS (873)
C++ General (2409) 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 12350Given 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 5840
Do the parentheses after the type name make a difference with new?
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
Difference between inline functions and macros?
What is while loops?
What is the difference between passing by reference and passing a reference?
write a program to convert a decimal number in to its equivalent binary number?
what is VOID?
What are libraries in c++?
What is a stack? How it can be implemented?
Explain the auto storage classes in c++.
What are the comments in c++?
What is the highest level of cohesion?
Difference between class and structure.
Define friend function.
When there is a global variable and local variable with the same name, how will you access the global variable?