News for hackers. Stuff that matters.
Re:Things I Learned from a Job Hunt for a Senior Engineering... by monksy on Tuesday April 24, 2018 @02:04PM (#16914989)
That actually sounds like a very reasonable senario to not do so well in.

The problem that I have with those problems is, they always assume it's easy to answer after seeing the solution. But if you're working on them for the first time, it's a terrible environment. The minute that they stop asking you, as the canidate, are on a timeline to finish. (Also, to finish as well)

The answer to that item would be: (with scala)

> datasource.window(3,1).filter((a,b,c)=> a+b == c)

I mean if you knock it out of the park and know the internals of window.. then asking the bar raiser question is appropriate as a curiousity.

There are other problems as well: Those are the ones where they have an expected answer, response, and reiterate. I've seen that with tree problems. That's where they would low-key ask for the recursive version and then get you to say stackoverflow exception.

Re:Things I Learned from a Job Hunt for a Senior Engineering... by jcadam on Tuesday April 24, 2018 @02:33PM (#16915300)
My personal opinion on what a senior dev interview should be is: open with a fizzbuzz-level 'bozo filter' coding question, then step away from the whiteboard and spend the rest of the interview speaking to each other like normal, functional adults.
Re:Things I Learned from a Job Hunt for a Senior Engineering... by monksy on Tuesday April 24, 2018 @06:35PM (#16917259)
I actually implemented fizzbuzz in Scala recently.. It's a lot easier to do it in a language that has good pattern matching. Doing that in c++/Java is pretty annoying
Re:Things I Learned from a Job Hunt for a Senior Engineering... by enedil on Tuesday April 24, 2018 @02:33PM (#16915299)
So is it actually O(n^2)? Because that is a solution that can be implemented.
Re:Things I Learned from a Job Hunt for a Senior Engineering... by monksy on Tuesday April 24, 2018 @06:37PM (#16917275)
That all depends on the sliding function and if it stores in a buffer. (If it does this is o n)