I like to ask (early into the interview) people to talk about a project they worked on that they were proud of.
It puts most people at ease, but for people with certain character flaws it is like dropping them in the ocean 20 miles from the coast with no life jacket.
Here's a question that I sometimes ask an engineering candidate:
You have a list of 100 numbers with values in the sequence 1 to 100. Each number of the sequence appears once except that one value is missing and one value is repeated. Determine which value is missing and which one is repeated.
Notice that I didn't say anything about writing code.
If asked,I will answer no questions like "are they in order?" and so forth.
4 comments
[ 3.1 ms ] story [ 16.1 ms ] threadIt puts most people at ease, but for people with certain character flaws it is like dropping them in the ocean 20 miles from the coast with no life jacket.
You have a list of 100 numbers with values in the sequence 1 to 100. Each number of the sequence appears once except that one value is missing and one value is repeated. Determine which value is missing and which one is repeated.
Notice that I didn't say anything about writing code. If asked,I will answer no questions like "are they in order?" and so forth.