## Brain Teasers Interview Questions

- 0of 0 votes

AnswersThere are 10 Apple trees. A Farmer has placed these trees in 5 rows of 4 each... Can you tell me how to do it???

- Babu Hemanth Kumar May 29, 2010| Report Duplicate | Flag | PURGE

Microsoft Software Engineer in Test Brain Teasers - 0of 0 votes

AnswersThere are 2 Persons A and B. A is given sum of 2 numbers (X+Y), while B is given Product of the same 2 numbers (X*Y).

- Anonymous May 21, 2010

Our purpose if to identify the two numbers.

We asked A "Do you know the numbers?" A answered NO. Then we asked B "Do you know the numbers?" B answered No. After that again we asked A now can you tell me the numbers A says YES and then B also says I can identify the number. Can you tell me what are those numbers?| Report Duplicate | Flag | PURGE

Brain Teasers - 0of 0 votes

AnswersPuzzle, A square Island surrounded by bigger square, and in between there is infinite depth water. The distance between them is L. The wooden blocks of L are given.

- Anonymous May 20, 2010

The L length block can't be placed in between to cross it, as it will fall in water (just fitting).

How would you cross using these L length blocks.| Report Duplicate | Flag | PURGE

Adobe Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersI am in a 100-story building. I have with me two glass balls. I know that if I throw the ball out of the window, it will not break if the floor number is less than X, and it will always breaks if the floor number is equal to or greater than X. Assuming that I can reuse the balls which don't break, find X in the minimum number of throws.

- Anonymous May 20, 2010| Report Duplicate | Flag | PURGE

Adobe Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersThere are two robot standing on two ends of a line, somewhere on the line there is a point and I need to make both robot reach that point. Same program is running in both robots. Only instruction allowed is : Move Left, Move Right, Am I on point. Tell how both the robots will meet.

- netappreject May 14, 2010| Report Duplicate | Flag | PURGE

Adobe Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersYou have a array of random numbers and you are given a number k. Find the 2 elements in the array which sum up to k.

- Learner May 02, 2010

e.g: If my array is {2,5,3,1,8,7,5,4} and k=6.

Then 2 numbers that sum up to 6 are 5 and 1.| Report Duplicate | Flag | PURGE

Akamai Software Engineer / Developer Brain Teasers - 0of 0 votes

Answersyou are given 80 balls and out of which only 1 has more weight than other 79. also, you are given weighing machine which can weigh any number of balls of 2 sets( 40 40 or 25 25 etc) at one time.

- Ganesh.Deo May 01, 2010

find the minimum number of steps required to find the ball of more weight than others. (i tried it came out to be 5 steps atleast, but he wanted more efficient solution )| Report Duplicate | Flag | PURGE

Microsoft Software Engineer in Test Brain Teasers - 1of 1 vote

AnswersThree boxes, one with apples, one with oranges, one with a mix of apples and oranges.

- Anonymous April 19, 2010

all the boxes are labeled incorrectly.

you can pick up just one fruit.

and tell which box has what fruit.| Report Duplicate | Flag | PURGE

Bloomberg LP Financial Software Developer Brain Teasers - 0of 0 votes

Answersgiven 2 non-uniform ropes (each burns down in 1hr, but not uniformly), how to measure 45 mins

- Analyst (Software Developer) March 27, 2010| Report Duplicate | Flag | PURGE

Argus Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersProbability question: Persons A and B go shopping together. Say person A spent X amount of money and B Y. What is the probability that the sum total of their purchases [i.e. X+Y] has 0 cents [i.e. is a whole number]. ?

- Bandicoot March 23, 2010| Report Duplicate | Flag | PURGE

Bloomberg LP Financial Software Developer Brain Teasers - 0of 0 votes

AnswersWith minimum number of steps read the last 5 line of a log file.

- Gaurang Mathur March 13, 2010| Report Duplicate | Flag | PURGE

Adobe Software Engineer in Test Brain Teasers - 0of 0 votes

AnswersThere are 7 buckets of water and an infinite number of flies. One of the the buckets is poisoned. You need to find which one is poisoned by putting the fly in it. It will take 7 days for the fly to die and and for you to know that the bucket is poisoned. Also you need to send one of the (non-poisoned) buckets to your friend in 1 week. How will you find out the poisoned bucket in least number of flies?

- anon March 11, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersGiven a set of pairs of key-value..ex:[1,2],[2,4]..such that 1 maps to 2 and 2 maps to 4. Now give a data structure and a solution to print the output such that any key from the input appears before to its mapped value.

- ak February 25, 2010

For ex: input [1,2](now 1 should appear before 2 in the output),[3,6](3 should appear before 6 in the ouput),[2,5](similarly..)

and the output is 1 2 3 5 6

Note: the key value pair is gone in the output.need not worry for that.| Report Duplicate | Flag | PURGE

unknown Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersGiven a cube. A ant is placed in a corner and cannot move. A spider starts from the opposite corner, and can move along cube edges in any direction (x,y,z) with probablity 1/3. What is the expected number of steps for this spider to get to the ant?

- ttgg February 25, 2010| Report Duplicate | Flag | PURGE

Goldman Sachs Analyst Brain Teasers - 0of 0 votes

AnswersA car travelling with a speed of 100 km/hr reduces it speed at 2km /hr.What is the peed of the car after 5 hours.

- Chris February 21, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersYou will be asked to select the figure disimilar to others, ALL are pentagons except one is Hexagon

- MrNonMadison February 03, 2010| Report Duplicate | Flag | PURGE

Epic Systems Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersIf a person sells 65% of his property, total property being 10,222 worth, how much he still owe (similar question)

- MrNonMadison February 03, 2010| Report Duplicate | Flag | PURGE

Epic Systems Software Engineer / Developer Brain Teasers - 0of 0 votes

Answersif a clock looses 2 secs per day, how much time will it loose in 2 days ?

- MrNonMadison February 03, 2010| Report Duplicate | Flag | PURGE

Epic Systems Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersIf one coin is not a dime in 15 cents out of the two, what are the two coins

- MrNonMadison February 03, 2010| Report Duplicate | Flag | PURGE

Epic Systems Software Engineer / Developer Brain Teasers - -1of 1 vote

AnswersFor Onsite Call: Epic will give you 10 questions to be done in 2 mins, 15 logical questions, and 20 questions related to MIIS programming language.

- MrNonMadison February 03, 2010

PLEASE NOTE, they hardly change the paper, so prepare these questions and expect them........

2 mins questions:

1) Vocation:Occupation

a) they are quite similar

b) they are quite opposite

c) not related| Report Duplicate | Flag | PURGE

Caritor Software Engineer / Developer Brain Teasers - 1of 1 vote

AnswersWrite an algorithm to check the winning condition in a tic-tac toe game for a NXN grid ? (Hint . can be done in O(1) need int ROW[N]; int COL[N]; int diagonal; int anti-diagonal )

- G January 29, 2010| Report Duplicate | Flag | PURGE

Google Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersGiven a cube of dimensions 10 x 10 x 10, if the outer layer is stripped off, how many units remain?

- Glenn January 26, 2010| Report Duplicate | Flag | PURGE

Software Engineer / Developer Brain Teasers - 0of 0 votes

AnswersYou have a database which catalogs all the buildings in NY. You decide to use a 4 byte integer value as unique identifier for the table. Will it work ?

- SR January 21, 2010

(The answer would reduce to finding number of buildings in NY)| Report Duplicate | Flag | PURGE

Bloomberg LP Financial Software Developer Brain Teasers - 1of 1 vote

AnswersGiven an array of n numbers in which all the members are less than or equal to k (k<n). device an algorithm of order O(k) to find the first repeating element.

- Ramesh January 14, 2010| Report Duplicate | Flag | PURGE

Microsoft Software Engineer / Developer Algorithm Arrays Brain Teasers Data Structures Ideas Math & Computation Sorting - 0of 0 votes

AnswersYou have 240 barrels of wine, one of which has been poisoned. After drinking the poisoned wine, one dies within 24 hours. You have 5 slaves whom you are willing to sacrifice in order to determine which barrel contains the poisoned wine. How do you achieve this in 48 hours?

- nikrishnaa December 26, 2009| Report Duplicate | Flag | PURGE

Brain Teasers - 0of 0 votes

AnswersYou have one dice.

- kcoder December 18, 2009

If I roll a 1, I win.

If you roll a 6, you win.

What is the probability that you will win?| Report Duplicate | Flag | PURGE

Bloomberg LP Math & Computation Brain Teasers

**CareerCup**is the world's biggest and best source for software engineering interview preparation. See all our resources.

Open Chat in New Window