Given 9 ball with only one differ in weight, how to find out by measuring them only twice?
Software Engineer 2 Interview Questions
665,657 software engineer 2 interview questions shared by candidates
1) How to reverse a string?
Find the second largest number in the array.
public class WhichReturns{ public String whichReturns(){ try{ return "1"; }finally{ return "2"; } public static void main(String argv){ System.out.println("Return val: " + WhichReturns.whichReturns()); } }
What will be the sizeof the following structure on a 32-bit machine: struct s { int i; char c; long d; void *p; int a[0]; };
How to find that a given number is even or odd without using (if, else, any loop, conditional operator ,switch). You can use only a "%" sign.
Given a stack containing values, implement min() operation to find minimum of all the values in O(1) time. Push() and Pop() should run in O(1) as well.
Convert : person_First_Name to personFirstName
When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called.
Why is your average pointer around 8 only?
Viewing 1131 - 1140 interview questions