Software Engineer Interview Questions | Glassdoor.co.uk

Glassdoor uses cookies to improve your site experience. By continuing, you agree to our use of cookies. OK | Learn More

Software Engineer Interview Questions

1,477

Software engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

You have three doors, behind one there is a prize. You choose door A, after that I ll tell you that behind door B there is no prize, do yuo keep your choice or change it ?

7 Answers

Change it. The probability for door A is 1/3, the probability for the set Door C + Door B is 2/3. The interview adds information on the set stating that Door B prob is 0, so the probability for Door C is 2/3 while Door A stays at 1/3

Balls. Once you know that there is no prize behind door B, prob(B) becomes 0. Then, since the prize must be behind A or C, and you don't know anything about them, prob(A) = prob(C) = 1/2. Any of the doors is OK.

Sorry Filippo (F?) but u r wrong on this one. U may see also it in this way: in the game You ll never be told that your initial choice is wrong, the information added is only about the other two doors. This breaks the symmetry, the probability that your initial choice stays at 1/3 ( It is secluded by the bit of more information added ) , but now the prob of b goes to zero and because all the probabilities must add up to 1, the prob(c) becomes 2/3. I understand it is not intuitive, but not all the math is :)

The questions were not very difficult but you really need to have all the concepts crystal-clear and be ready to apply them successfully. One of the questions was "how to count the letters in this string:" "The quick brown fox jumps over the lazy dog";

11 Answers

Write a function that takes the ordinal number of a column in a spreadsheet and returns the label of that column: i.e. 1 -> A 2 -> B, 26 -> Z, 27->AA

7 Answers

Given a list of words, right a function to return a list of pairs of palindromes

5 Answers

Given the pre-order and in-order traversing result of a binary tree, write a function to rebuild the tree.

5 Answers

Assuming you have a large cube shaped by small cubes together, their number is 1000 How many cubes will be visible?

4 Answers

Find if there are two members of an array that sum to 10 (10 and 0 count, but 10 alone does not).

4 Answers

Given two unsorted arrays, one with event start times and one with end times, find out if any two events overlap.

5 Answers

How work you work out all the prime numbers up to a given range?

3 Answers

What is 'deadlock'?

3 Answers
110 of 1,477 Interview Questions