18

This question concerns an interview question. What is the policy answering such on Stack Overflow? Is it OK to just for fun give an answer that would

  • solve the problem using code?
  • give the reasoning for the solution or the correctness of one's solution?
  • provide hints in the right direction?

Here's a snapshot of the original question, which has since been deleted:

20
  • 22
    What is your concern? That someone will use SO to get the answer during an interview?
    – user1919238
    Commented Feb 22, 2016 at 14:39
  • 74
    @dan1111 You mean you haven't sprinted out of the interview room to ask a technical question on StackOverflow only to return triumphantly with your answer before?
    – miradulo
    Commented Feb 22, 2016 at 14:41
  • 16
    Meh.. 'Interview question' is often a blatant lie to cover up homework dumps anyway. Luckily, in either case, they are usually no-inputs/no-outputs/no-effort/no-error-messages/no-debugging trash questions that can be readily dumped. Commented Feb 22, 2016 at 14:59
  • 16
    This is a copy/paste from Careercup.com, a site owned by Gayle McDowell. Formerly at Google.com where she was a member of the Hiring Committee. Copy/pasting copyrighted material without any attribution or clearance whatsoever is, well, you know. The site moderators refuse to enforce it so there isn't much that can be done about it. But feel free to not like it. Commented Feb 22, 2016 at 15:23
  • @HansPassant right. it can have a nice, non-copyrighted, non-patented DCV. Commented Feb 22, 2016 at 16:05
  • Looks like I just about got away with my interview question, though even that managed to attract downvotes and closevotes from the sillies. Commented Feb 22, 2016 at 19:02
  • 3
    I also asked an interview question a while back and it was well-received with many answers. I guess it's just a matter of how you phrase it, and if you really show that you've tried to solve it prior to posting on SO. (Ofcourse it has to be well-defined and applicable to a large-enough audience)
    – Idos
    Commented Feb 22, 2016 at 19:16
  • 9
    Is it a good question in it's own right? If so, we don't care. If not, downvote/close etc.
    – Sobrique
    Commented Feb 22, 2016 at 19:50
  • 1
    related at Progs meta: Why do interview questions make poor Programmers.SE questions?
    – gnat
    Commented Feb 22, 2016 at 20:46
  • 2
    My god. I don't think I'd know where to start with that question in an interview. If I get fired or quit, I may have to go back to being a cashier; I'm pretty sure my high school experience at that job would still hold up. Commented Feb 23, 2016 at 5:45
  • It's actually quite a good way for interviewers to find interesting questions and good answers. If someone has studied up all the interview questions on SO, they probably know what they're doing anyway, and are worth hiring.
    – paddy
    Commented Feb 23, 2016 at 13:13
  • @ralph-m-rickenbach : Just out of curiosity, what's an "interview question"? Commented Feb 23, 2016 at 13:42
  • @ralph-m-rickenbach I'll add that this question (in subject) doesn't exist anymore. Commented Feb 23, 2016 at 13:56
  • 2
    @konrad_firm Thank you. in the question, there was a link to a page that had a list of programming problems that where labeled 'interview questions', that is, that could be asked during job interviews to test somebody's skills. Commented Feb 23, 2016 at 14:43
  • @ralph-m-rickenbach wow, I didn't expect that:) I thought "interview" was used in the meaning of interviewing i.e. a politician by a journalist. Thanks for clarification. Commented Feb 23, 2016 at 14:47

1 Answer 1

78

You should act according to the question's quality, regardless of where it was asked. The question you came across should be closed, not because it's about algorithms, but because OP is not specific, his last line was "..then don't know what to do".

I really don't care if the question was asked during an interview or a class, or maybe by a random in the street, what I care about is the quality of the question. I don't like encouraging unclear questions that don't demonstrate understanding, this won't be really helping OP and future users.

3
  • 26
    Interview questions, homework questions, whatever. It doesn't really matter - either they're a good question, and we treat it as we do good questions... or it isn't, and it should be downvoted or close voted accordingly.
    – Sobrique
    Commented Feb 22, 2016 at 19:50
  • 5
    +1 for maybe by a random in the street Commented Feb 23, 2016 at 20:50
  • 4
    ...random in the street... are you black hat? xkcd.com/356 Commented Feb 24, 2016 at 2:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .