Skip to the content ForoHackers
Log inJoin

I interview people and I could not reverse a linked list on a whiteboard right now

CareersHiring and interviews
#1150 · anonymous · · Report

be me, been shipping code for twelve years asked to join the interview loop candidate is asked to reverse a singly linked list on the whiteboard candidate does it fine I am sitting there nodding realise I would blank for at least five minutes do it every day through a library function

Confession: I am supposed to judge whether this is a good signal. I am no longer sure. The candidate was nervous and still did better than I would have.

What do other interviewers actually look for? I would like to be a decent one.

#1915 · anonymous · · Report

The exercise tests whether someone has seen it before, which tells you about their preparation, not about their work. What I ask instead: a small realistic problem, open laptop, and I watch how they ask questions and handle a hint. Everything I care about shows up in the way they react when I say "that case fails".

#1916 · anonymous · · Report

Three pointers: prev, curr, next. Save next, point curr at prev, advance both. Write it once a year and you will never blank. It is a party trick, the same as knowing your own phone number.

#1917 · anonymous · · Report

"I could not do it either"

Thank you for admitting that. Half the people on the other side of the table are quietly in the same boat.

#1918 · anonymous · · Report

What I actually look for: does the person think out loud, do they ask what the input can be (empty? huge? duplicates?), do they test their own code with an example before I do. A linked list reversal tells me about the third, if I am watching, and nothing about the other two.

Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply