Development Interview Questions

137,190 development interview questions shared by candidates

Suppose you have 11 marbles and a two-pan balance used to compare the weight of 2 things. All of the marbles weigh the same except for one, which is heavier than all of the others. How would you find the heaviest marble if you are only allowed to weigh the marbles 3 times?
avatar

Software Development Engineering Intern

Interviewed at Microsoft

4
Nov 18, 2016

Suppose you have 11 marbles and a two-pan balance used to compare the weight of 2 things. All of the marbles weigh the same except for one, which is heavier than all of the others. How would you find the heaviest marble if you are only allowed to weigh the marbles 3 times?

1. Reverse string except spaces. A string has mix of alphabets and spaces. Your task is to reverse the string, but preserve the positions of spaces. For example, reverse of " a if" is " f ia" 2. An array of size n has all but one numbers between 1 and n+1. Find the missing one.
avatar

Software Development Engineer

Interviewed at Microsoft

4
Jun 11, 2015

1. Reverse string except spaces. A string has mix of alphabets and spaces. Your task is to reverse the string, but preserve the positions of spaces. For example, reverse of " a if" is " f ia" 2. An array of size n has all but one numbers between 1 and n+1. Find the missing one.

Viewing 211 - 220 interview questions

Glassdoor has 137,190 interview questions and reports from Development interviews. Prepare for your interview. Get hired. Love your job.