Given a vector of integer elements. Remove the duplicates. Do not change the order of elements.
Software Interview Questions
551,241 software interview questions shared by candidates
puzzle: there are 2 cans of size 4 liter and 7 liter. how can you get 2 litters of milk from it.
In Java, how do you convert string "123" to a number. I knew this, but was drawing a blank during the interview.
how do you find 3 number total 0?
I have 55 cents in two coins, one of these coins is not a nickel. What are the two coins?
count the number of letter combination in a short message.
given an array of words find what is and how long is the length of the longest common substring between two words in the array
1. How to achieve automatic type conversion from type X to type Y? a. X can define the member function operator Y() b. a) or b) can be used c. Y can define the constructor Y(const X&) d. none of the above 2. class Coordinate{ int x; int y; public: Coordinate(int a=0, int b=0) { x=a; y=b; }; }; What are the values for the following object: Coordinate point(10); a. x=10,y=0 b. x=0,y=10 c. x=10,y=10 d. x=0,y=0 3. What type of argument can the following function take : Void foo(); a. any number or type of arguments b. a character c. an integer d. no an integer argument of any type 4. Consider the following function declarations in a header file: void doit(char *, int); int doit(char *) ; float doit(float, float) ; Which of the following declarations cannot follow in the same header: a. void doit(int, char *); b. int doit(int) ; c. float doit(char *) ; d. int doit(int, int) ;
1. Cumulative sum of fibonacci series. fib(n) = addition of all the fibonacci numbers upto n -1.
Write a function that detects the first non-repeating character in a char array, and do so with only a single pass over the array.
Viewing 2401 - 2410 interview questions