News for hackers. Stuff that matters.
Re:Solving dynamic programming interview problems by BurningFrog on Friday May 18, 2018 @10:54PM (#17106376)
When I interviewed at $BigCompany, I really enjoyed the whiteboard programming problems I got.

But I noticed that 2/3 of them ended up with recursive solutions. Meanwhile, I spend less than 1% of my real professional programming time writing recursive code, and it's a bit silly that so much focus is on such relatively obscure technique.

Re:Solving dynamic programming interview problems by x1798DE on Friday May 18, 2018 @11:11PM (#17106437)
I think it's a mistake to think of whiteboard problems as attempting to recreate a real work environment. They are a proxy for the kind of quality you are looking for that can be "measured" within the alotted time.

They can show that the person is prepared (they studied), generally knowledgable (they remember obscure stuff), or just clever (they come up with interesting approaches to the problem).

I'm not surprised you see both excessively simple (make sure they aren't ridiculously unqualified) and excessively obscure problems, since the first one essentially tests your reflexes and the second one tries to determine if you learned your job "by rote"

Re:Solving dynamic programming interview problems by irq11 on Saturday May 19, 2018 @06:56AM (#17107347)
They’re used because “that’s what company X uses”. People are cargo culting each other, and making up post hoc rationalizations for their behavior.

Unless you work for a major tech company where optimizing the false positive rate is your primary concern, using these problems is counterproductive.

Re:Solving dynamic programming interview problems by BurningFrog on Saturday May 19, 2018 @12:07PM (#17108443)
Yeah, it's philosophically valid that you'd want to measure certain critical things that are different from the everyday grind.

But I think the simpler explanation is that these interviewers mostly had picked "cool" recursion problems.

I did get the job, and seeing $BigCompany's hiring process from the inside didn't contradict this.

Re:Solving dynamic programming interview problems by samfisher83 on Saturday May 19, 2018 @10:31AM (#17108020)
You can solve most recursive problems with a loop and a stack. That way you aren't making a bunch of function calls eating up memory.