| > can I multiply a number by itself This is a great clarifying question. Ambiguous from the prompt. > what shall I return if there are multiple numbers meeting the criteria This is a decent clarifying question. I think it is better expressed as a clarifying point instead of question--mention to the interviewer your thinking out loud; something like "if there are multiple options, I'll return an arbitrary pair". Ask if they are okay with that. > is the list sorted If I were the interviewer, this question would almost make me dock points off of the interviewee. Maybe not that strong as I do try and ensure people are as comfortable and open as possible in asking clarifying questions, but this barely qualifies as a clarifying question in my opinion. It is almost irrelevant to the prompt; if the lists were sorted and the interviewer failed to mention / there was some "trick" that they expected you to clarify, that would be an awful interview question. That being said, overall agree with the sentiment and yes you should try and always ask clarifying questions and ensure you understand the problem statement. |