> When I ask people at trendy big tech companies why algorithms quizzes are mandatory, the most common answer I get is something like "we have so much scale, we can't afford to have someone accidentally write an O(n^2) algorithm and bring the site down".
I think people who say this just don't get what's really going on here. If you look at these types of interviews, a big part of what they select for is:
1) Some sort of problem-solving skill that's a mix of raw intelligence and/or ability to solve problems by pattern-matching to things you've seen before.
2) Ability/commitment to work on something that may not be that intrinsically motivating, in the context of getting/maintaining a certain type of job.
These interviews select exactly for that. To pass, you usually have some mix of:
- raw intelligence.
- ability to pattern match to similar problems you've seen before.
- ability and motivation to spend time preparing for these types of interviews, even if they're not really what you care about doing.
That's really what they're trying to capture. It's not a perfect filter (you will still have some false positives and plenty, plenty of false negatives), but it works "well enough".
You really only need one Dan Luu per like 10 or 100 engineers at a FAANG. Most people aren't going to be optimizing at the level he is, they're going to be doing work that's mostly a mix of problem-solving by pattern matching, and ideally, they're motivated enough to have that job for as long as possible.