> Q: Assume that you have an infinite stream of data that is coming in from multiple threads in an unordered fashion. Write the stream items to the console in order. If I were the interviewer I would be interested in what clarifying questions the candidate would ask and/or how they would highlight parameters and assumptions needed because the question is vague to the point of being unanswerable otherwise.
As written this problem is impossible to solve. Proof: suppose there is only 1 infinite stream which is always descending. You will never find a lowest value, so you cannot rewrite the stream "in order".
Coding interviews are stupid (ish)
141–150 of 679 posts
Re: Coding interviews are stupid (ish)
#142Earlier quoted context omitted.
The "point" of the whiteboard interview is to see how you think and converse and interact around your coding process, not (necessarily) how accurate/good you are at writing the code. You could write pseudocode that can't compile, and as long as you can explain the algorithm and talk about its complexity you could "pass" (in theory) Screening interviews do take place in a shared doc or other editor, I believe.
I've never had any company let me write pseudocode. I once tried to write "vec" instead of "std::vector" and the interview told me to write valid code on the whiteboard. (And I did explain that I was to avoid writing "std::vector" repeatedly).
Or even using V = std::vector;
for a concrete type T
Solves the problem. If someone denies you this, you don’t want to work there :)
Re: Coding interviews are stupid (ish)
#143Earlier quoted context omitted.
What, exactly, was the substance of their complaint(s), if any? Was it just that you made them do their job in a way different from how they are used to?
This was years ago (pre-covid) but what I remember was a mix of: - "Oh, you're using a laptop" - "Do you really need to use that?" - "Just write it on the whiteboard" - "It would be easier to see on the whiteboard" They also didn't give me a mouse, so using the trackpad was slow. What I hate most about whiteboards is how you can't easily insert lines so you have to leave lots of space. I tend to write code like an on…
I think one way to do well in that interview, is to pretend you're the professor and they're a student, and you're working through course material.
In the end, it's just showing them that you passed the socio-cultural hurdles they think are necessary, even if they no longer explicitly check GPAs and which school you came from at interview time.
Why?
Google is more often than not the first job these employees have after school, and many stay there almost forever after. A large percentage are masters or PhDs.
Google is founded by two Stanford grads, both children of academics, who never worked in the industry outside of Google.
Academia is hence the reference point against which Google measures things.
Google is structured in many ways just like a university. Publish or perish (Design docs, PRDs). Thesis committees (perf "calibration" committee, interview committees, etc) and review (intense code review). Even down to the physical "campus" structure. On site cafeterias, even housing/dorms (GSuites, etc)
It's something that was very foreign to me having worked in the industry for a decade before, without a degree.
Re: Coding interviews are stupid (ish)
#144> What I do know, however, is that for every 1-hour interview where I evaluated if someone knew their data structures, I could have just taught them.
I don't really hear much about training. I doubt it's because we don't do it, but maybe it's not an interesting topic for discussion.
Re: Coding interviews are stupid (ish)
#145Earlier quoted context omitted.
Haha I’m not sure I agree about how useful CoPilot is in practice (there are certain tasks where it shines but all of the LLMs print invalid code routinely). With that said you made me laugh out loud because I have a friend who knew two people trying to LLM some minor contract and it just went on forever. I definitely think two LLMs talking to each other with two people copy pasting and not realizing it is worth like…
Yeah, I've even seen people in top ML jobs glowingly describe the main value of CoPilot as (just) smart autocomplete, but copying/regurgitation of algorithms ought to be something that even today's LLMs should be capable of. Of course there's always Google search too if you are just looking for an algorithm, but LLMs help in the discovery process since you can describe what you need without knowing the name of it.
Re: Coding interviews are stupid (ish)
#146The coding interview looks different when you view it for what it would be called in other industries: a licensure examination. It looks particularly insane to relicense for every single job you apply to. It also looks supremely unfair to have proctors for this exam with varying expectations and training to actually correctly administer it.
The roughest outline for hiring as far as I can follow it is start with 100 resumes, filter it down to 10 by picking ones that are nicely formatted, then filter down to 1 by interviewing. Each level of filtering should be structured so that it biases towards technical competence. It isn't really a licensure examination because, as you point out, the industry doesn't bother to put the resources in to make sure anythin…
Re: Coding interviews are stupid (ish)
#147Earlier quoted context omitted.
- licensing ensures only a minimum level of quality - people with licenses still do interviews, often just as grueling - licensed careers with high performers (lawyers, doctors, ib, etc) have other forms of filtering which are much more painful, like years of low pay internships Studying for a few weeks to solve fun puzzles to make 400k sounds like a deal to me.
What kind of job pay 400k? Even when I worked as C++ guru at BMW and was hired as very senior my before taxes compensation was 40k (year).
Re: Coding interviews are stupid (ish)
#148Earlier quoted context omitted.
- licensing ensures only a minimum level of quality - people with licenses still do interviews, often just as grueling - licensed careers with high performers (lawyers, doctors, ib, etc) have other forms of filtering which are much more painful, like years of low pay internships Studying for a few weeks to solve fun puzzles to make 400k sounds like a deal to me.
What kind of job pay 400k? Even when I worked as C++ guru at BMW and was hired as very senior my before taxes compensation was 40k (year).
Are you in the EU? Salaries are lower across the board there for engineers.
In the US for Silicon Valley Type large Tech Companies the starting salary for New Graduate SWE's is 150k USD on the low end.
For a senior engineer at FAANG it can easily get above 500k USD.
Re: Coding interviews are stupid (ish)
#149Earlier quoted context omitted.
Stock in public companies is effectively equivalent to cash, so what’s the difference? Sell on vest and buy index funds or anything you want.
That's assuming the stock price doesn't go down in the time it takes to hit your first (or any meaningful) vesting cliff.