Runnable interface, Synchronization, ect
Engineer Developer Interview Questions
467,806 engineer developer interview questions shared by candidates
Write a function that expects 3 int parameters( a, b, c ) and returns b is a = 0 and c if a = 1. You are not allowed to use if loop or comparison operators.
int fun(int a) { int i=0; if(a>99) i++; return a-12; return fun(fun(a)) } int main() { printf("%d", fun(69); printf("%d",i); }
Determine the sum of all prime numbers less than 1000.
Difference between == & === ?
Find the kth largest element in an array
What is the most efficient way to swap the numbers from left to right? For example: 1234567 if giving the k = 3, the result should be 4567123.
About arrays sorting
You have two strings and a lighter. Each string takes one hour to burn, but they burn at variable rates. So for example, after 30 minutes, you have no idea how much of the string has burnt. Using just the two strings and the lighter, determine when exactly 45 minutes have passed.
2. How will you take out 4 litres of water in a pot from the sea just by having two bottles of 3L and 5L of random shapes?
Viewing 2001 - 2010 interview questions