2 ms·
When I asked well-known questions like this in an interview, I usually ask the candidate if they have seen the question before. Almost everyone says "no." But
by pclmulqdq 4y ago
When I asked well-known questions like this in an interview, I usually ask the candidate if they have seen the question before. Almost everyone says "no."
But if you then go on to solve the question without thinking about any alternatives, red flags go up. Even worse, some people would try to pretend that they didn't know the answer. Their line of thought to the solution would be a LOT more linear and less branchy than someone who truly didn't know. I would never fail someone who found the answer to the question, but I did note the possibilities: either they lied about knowing the answer, or are very smart and lucky to get straight to the answer.
Now, I was happy if the candidate said "yes" and gave me the solution. Then we could move on to something else (usually an easier question), and I noted your preparation and honesty for the hiring committee.
Almost everyone who said "yes" got an offer at that company. Almost everyone who lied about their "no" didn't get hired.
By the way, this particular question has an easy way to weed out the mathematicians from people who are well-prepared: add another repeated number. It's possible to solve for both that are repeated.