Majority of the interview questions for software developers are retarded. It's either too academic (reverse a linked list) or too specific (What is the difference between StringBuffer and StringBuilder in Java?). To answer your question - none.
Being too specific is only bad unless you have not listed as your experience in the domain. But being too academic is actually good. The academic questions are constants irrespective of the domain in which the coding is done.
Ask HN: What are the best interview questions you've been asked?
31–40 of 63 posts
Re: Ask HN: What are the best interview questions you've been asked?
#32Find the minimum value in the stack in O(1) both time and space complexity.
[]
push(1) : [1]
push(2) : [1,1]
push(3) : [1,1,1]
push(3) : [1,1,1,0]
pop() : 3, [1,1,1]
pop() : 3, [1,1]
pop() : 2, [1]
pop() : 1 [0]
Re: Ask HN: What are the best interview questions you've been asked?
#33Re: Ask HN: What are the best interview questions you've been asked?
#34Consider two directed acyclic graphs where each node has a hash that depends on its value and its parent's hashes. Suppose you have a slow connection and one of the graphs is remote, how do you figure out as efficiently as possible which nodes both graphs have? The trick is to sample random nodes from the remote graph. If you get back a node that has the same hash as a node in your graph, you know that local and remo…
Re: Ask HN: What are the best interview questions you've been asked?
#35A very senior guy comes in the room where I am with a very concentrated look on his face and my resume in his hand. On my resume its mentioned that I have a lot of experience bringing security relevant concepts to inexperienced people. So he describes a problem hes actually working through when he was "interrupted" to come interview me. He was trying to terminate an SSL connection, modify the stream (for video manipu…
A very senior dev had to be explained he couldn't do a man-in-the-middle attack on an encrypted stream without the server's private key? With all due respect and I don't know much about security but something seems off, maybe you haven't explained the whole story or maybe I'm getting something wrong.
Re: Ask HN: What are the best interview questions you've been asked?
#36Majority of the interview questions for software developers are retarded. It's either too academic (reverse a linked list) or too specific (What is the difference between StringBuffer and StringBuilder in Java?). To answer your question - none.
Being too specific is only bad unless you have not listed as your experience in the domain. But being too academic is actually good. The academic questions are constants irrespective of the domain in which the coding is done.
Re: Ask HN: What are the best interview questions you've been asked?
#37one i really enjoyed solving: given an array of size (n - 1), containing all but one of the numbers between 1 and n, find the missing number in linear time and constant space.
Re: Ask HN: What are the best interview questions you've been asked?
#38Or any variation on "here's a real problem we are actually having. Do you have any ideas about how one might go about solving it?"
and bonus worst question:
"do you have kids/what does your family life look like?"
Re: Ask HN: What are the best interview questions you've been asked?
#39Find the minimum value in the stack in O(1) both time and space complexity.
Re: Ask HN: What are the best interview questions you've been asked?
#40I talked with one hiring lady 30 minutes about movies and surfing.
The technical questions are usually superfluous if you have a proper resume and published work online. Nobody needs that crap.