Puzzle Interview Questions | Glassdoor

Puzzle Interview Questions


interview questions shared by candidates

Puzzle Interview Questions

Sort: RelevancePopular Date

An array of 99 elements contains integers from 1 to 100 with one missing element. Find the missing element.

22 Answers


1. calculate the sum of elements in array say SUM 2. sum of numbers 1 to 100 is(n* (n+1))/2 = 5050 when n==100 3. missing element is (5050-SUM)


There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the box it labels. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly?

38 Answers

How to measure 9 minutes using only a 4 minute and 7 minute hourglass

15 Answers

You are on a game show. There are three doors, behind one of which is a prize and the other two is a chunk of coal, and the host knows which door holds the prize. You choose door #1. Before it is opened, the host opens door #3 and reveals a lump of coal. You have the choice to stick with the door you chose originally or switch to door #2. What do you do?

16 Answers

What would you do if our CEO came into our store?

3 Answers

Tiresome puzzle questions. Recommend looking up the standard ones and their solutions (no, these don't make someone a better software designer or programmer - they're a waste of time). Be prepared for a programming exercise as usual, but be prepared to ask for it in a font/format that's easier to read than Arial or whatever variable-spacing font was used, and without line-wraps. I got the impression that the printout was an afterthought, and the level of interest of the interviewer was minimal

2 Answers

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.

1 Answer

How long would it take for a set of ants to eventually walk off of a stick, if the ants would walk along the stick, instantly reversing course if they bumped into each other?

1 Answer

Why do you think you can do for me that someone else cannot?

1 Answer

They have some puzzles and ask you to do one.

1 Answer
110 of 12 Interview Questions