Developer Interview Questions | Glassdoor

Developer Interview Questions

87,440

developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

You have a 100 coins laying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up. You can't feel, see or in any other way find out which side is up. Split the coins into two piles such that there are the same number of heads in each pile.

36 Answers

Answer #1: Place 50 coins into two piles on its edges so that both have the same amount of heads in each pile, neither facing up or down. Answer #2: Trick question, place 50 coins in both piles and in theory they all have heads just not necessarily facing up or down.

agree with 2nd ans

Split into two piles, one with 90 coins and the other with 10. Flip over every coin in the pile with 10 coins.

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

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

128 Answers

Write some pseudo code to raise a number to a power.

11 Answers

Describe and code an algorithm that returns the first duplicate character in a string?

12 Answers

How do you approach situations where multiple influential employees have different (and possibly hidden) agendas.

220 Answers

In a given sorted array of integers remove all the duplicates.

8 Answers

Given an array of numbers, replace each number with the product of all the numbers in the array except the number itself *without* using division.

8 Answers

Suppose you have a matrix of numbers. How can you easily compute the sum of any rectangle (i.e. a range [row_start, row_end, col_start, col_end]) of those numbers? How would you code this?

8 Answers

What sort would you use if you required tight max time bounds and wanted highly regular performance.

6 Answers

What is a JavaScript callback function?

5 Answers
110 of 87,440 Interview Questions