pbewig | 10 years ago | on: Chez Scheme is now free
pbewig's comments
pbewig | 11 years ago | on: Hammurabi: Classic game of strategy and resource allocation
pbewig | 13 years ago | on: Actually using Ed
Ed reads the entire file. If you need to move back and forth through the file, or move lines from one place to another, or reprocess the same line repeatedly, it can be far more convenient than a scripting language.
pbewig | 14 years ago | on: Generating random text
pbewig | 15 years ago | on: What is your preferred online accounting software?
pbewig | 15 years ago | on: Hash tables with O(1) worst-case lookup and space efficiency [pdf]
pbewig | 15 years ago | on: Hash tables with O(1) worst-case lookup and space efficiency [pdf]
pbewig | 15 years ago | on: A candidate not versed in prog folklore = not suitable for hiring
As a broad statement, certainly not always true, computer programmers seem to be less knowledgeable of their professional culture than other professions. There is no equivalent to <em>Architectural Digest</em> or <em>Journal of Accountancy</em> or <em>Morbidity and Mortality</em> for programmers, so programmers have to work harder to keep up with their profession. If you can demonstrate that at an interview, you have a leg up on the candidate who can't.
Do you have to know the linear solution to the maximum sum subsequence problem to get hired? Of course not. But if you know it, and the other guy doesn't, then all other things being equal, you get hired, not him.
I should also have mentioned that there must be some context to the programming questions being asked at an interview. There are probably better questions to ask a PHP web developer.
Oofabz: Bentley recounts the history of the problem. Several experienced computer scientists believed for several weeks that the O(n log n) solution was optimal. If you think the linear solution is immediately obvious, you're special.
DannoHung: It may be that I have not fully specified the problem, but an empty sequence has a sum of zero, which is the maximal sum if all elements of the sequence are negative.
Abyssknight: I've never shipped anything. I've always worked in an internal support position, never on a shipping product. But I regularly develop and install new programs for my internal customers, in addition to supporting vendor code; I guess you could say I've shipped those programs.
Goombastic: I'm not a stupid HR guy. I'm a programmer who has stopped asking this kind of programming questions because I don't think they tell me much about the candidate. But it seems other folks do ask this kind of programming questions, so I put them on my blog from time to time.
Everyone: Thanks for the discussion.
pbewig | 15 years ago | on: Benford's Law
pbewig | 15 years ago | on: Adventures of an imperative programmer in the land of fp
pbewig | 15 years ago | on: Ask HN: How do you start programming?