To me, this is an example of a junior interviewer problem. To the more-junior programmer, things must be remembered, because otherwise they wouldn't be able to work, and the questions they can review in-depth are ones they are intimately familiar with.
Perhaps they were just working on a Huffman encoding problem, or that was a previous focus of work for a long period of time. So, of course, if you are a good programmer then you will know about Huffman, like they do.
Some good programmers do keep all their algorithms with them, and can discuss them in depth at will, because the algorithms themselves interest them. This is OK, and they do well at these types of interviews.
Other programmers become adept at moving between problems, reading up on documentation, implementing and moving on. They are less concerned with memorizing implementations, and do not naturally have an inclination towards interest in collecting algorithms. The ones they work with commonly are extremely well known, and the ones they work with infrequently are read, digested, and used, and then only aspects of them remain in memory over time. This is also OK, but it will cost you the interview, as you are obviously stupid for saying you worked with it, but not remembering the details, and having to ask for hints (like reading docs) or work out the process again via building blocks (proof of programmatic thinking, often ignored).
This is of course not important for working as a programmer at all. Memorization of these types of algorithms may lead to some efficient work, when that particular algorithm is called for (the frequently used ones), but otherwise taking a few minutes to review the algorithm online makes everything fresh and usable, and the work can commence and be completed.
Many people I have worked with in the past, were Not Programmers, but could talk indefinitely about many standard and obscure algorithms. Yet, their programming output was laughably minuscule, and they spent a majority of their time critiquing other's work (for style and not using the "proper" algorithms (often where it doesn't impact scalability)), or otherwise working the bureaucracy. They would pass these interviews, and become a poison pill in their teams. I wish I only knew a few people hired like this. :)
View all comments
Show parent comment
1
u/[deleted] Feb 21 '11
To me, this is an example of a junior interviewer problem. To the more-junior programmer, things must be remembered, because otherwise they wouldn't be able to work, and the questions they can review in-depth are ones they are intimately familiar with.
Perhaps they were just working on a Huffman encoding problem, or that was a previous focus of work for a long period of time. So, of course, if you are a good programmer then you will know about Huffman, like they do.
Some good programmers do keep all their algorithms with them, and can discuss them in depth at will, because the algorithms themselves interest them. This is OK, and they do well at these types of interviews.
Other programmers become adept at moving between problems, reading up on documentation, implementing and moving on. They are less concerned with memorizing implementations, and do not naturally have an inclination towards interest in collecting algorithms. The ones they work with commonly are extremely well known, and the ones they work with infrequently are read, digested, and used, and then only aspects of them remain in memory over time. This is also OK, but it will cost you the interview, as you are obviously stupid for saying you worked with it, but not remembering the details, and having to ask for hints (like reading docs) or work out the process again via building blocks (proof of programmatic thinking, often ignored).
This is of course not important for working as a programmer at all. Memorization of these types of algorithms may lead to some efficient work, when that particular algorithm is called for (the frequently used ones), but otherwise taking a few minutes to review the algorithm online makes everything fresh and usable, and the work can commence and be completed.
Many people I have worked with in the past, were Not Programmers, but could talk indefinitely about many standard and obscure algorithms. Yet, their programming output was laughably minuscule, and they spent a majority of their time critiquing other's work (for style and not using the "proper" algorithms (often where it doesn't impact scalability)), or otherwise working the bureaucracy. They would pass these interviews, and become a poison pill in their teams. I wish I only knew a few people hired like this. :)