Re: Java Interview Questions: Am I Being Too Difficult?
Chris Smith wrote:
[color=blue][color=green]
> > An example of how few programmers can pass a "simple" test -- at least
> > in an interview situation. [...][/color]
>
> Wow. The last time I interviewed for a job (about three years ago, and
> it wasn't even a programming job!) I was asked a much harder question
> than that to solve at a whiteboard in the middle of an interview. The
> problem was something like "Given an array of integers of length m, and
> a target integer n, write an O(m)-time algorithm to find two array
> elements whose sum is n."[/color]
Ouch. Or maybe not, it depends on the interview situation. It's a nice little
problem for someone sitting happily at home with a glass of wine. But not a
challenge I'd relish in an adversarial interview situation. In a more
friendly, chatty, interview where I felt I could think out loud, and get
"credit" for exploring avenues that turned out to be dead ends, then it'd be a
lot more fun (and, presumably, a lot more informative for the interviewer).
[color=blue]
> If what you're saying is true, I wonder how many correct answers they
> got to *that* question.[/color]
Thinking about it, it seems to me that a "difficult" algorithmic question like
that might bring out the best in some people. Maybe we (at the shop I
mentioned) would have got more information about candidates if we'd split the
challenge(s) up, but made them harder.
Step 1: introduce some abstract problem that you hope the candidate can solve
with some thought and discussion.
Step 2: /then/ challenge them to turn their solution into approximately
workable code.
At least it could avoid the mental log-jam caused by trying to work out what
the code should do at the same time as actually writing it.
-- chris
Chris Smith wrote:
[color=blue][color=green]
> > An example of how few programmers can pass a "simple" test -- at least
> > in an interview situation. [...][/color]
>
> Wow. The last time I interviewed for a job (about three years ago, and
> it wasn't even a programming job!) I was asked a much harder question
> than that to solve at a whiteboard in the middle of an interview. The
> problem was something like "Given an array of integers of length m, and
> a target integer n, write an O(m)-time algorithm to find two array
> elements whose sum is n."[/color]
Ouch. Or maybe not, it depends on the interview situation. It's a nice little
problem for someone sitting happily at home with a glass of wine. But not a
challenge I'd relish in an adversarial interview situation. In a more
friendly, chatty, interview where I felt I could think out loud, and get
"credit" for exploring avenues that turned out to be dead ends, then it'd be a
lot more fun (and, presumably, a lot more informative for the interviewer).
[color=blue]
> If what you're saying is true, I wonder how many correct answers they
> got to *that* question.[/color]
Thinking about it, it seems to me that a "difficult" algorithmic question like
that might bring out the best in some people. Maybe we (at the shop I
mentioned) would have got more information about candidates if we'd split the
challenge(s) up, but made them harder.
Step 1: introduce some abstract problem that you hope the candidate can solve
with some thought and discussion.
Step 2: /then/ challenge them to turn their solution into approximately
workable code.
At least it could avoid the mental log-jam caused by trying to work out what
the code should do at the same time as actually writing it.
-- chris
Comment