What's the deal with it? I'm looking for comments from people who can speak on both sides.
In my opinion, you shouldn't need to tell the interviewer if you've already seen the question/ asked the question. This is almost equivalent to sitting in an exam and not solving a question just because you know how to solve it.
In case I mention that I've seen the question, I'm not given any points for my morality, nor is it going to compensate for any low points I may have had during the interview. I'd lose the job either way.
If I have a chance in securing it, why would I go out of my way to hurt my chances?
Edit- where would you draw the line now if you are asked the same question twice while interviewing with the same company? This seems like a pretty hypothetical scenario, but humor me.
CMV. Please 😄
Don’t blurt out the optimal right away - that’s a dead giveaway hint to them. Pretend to struggle. Take your time. Mention the brute force. Talk out loud. Then lead into your optimal after a few minutes.
It’s their fault for not coming up with unique questions. Not your fault for being prepared.