Also, a good system design interview isn’t about designing a “perfect” system (hint: there isn’t one), it’s about defending a reasonably considered design.
Google’s system design interview very closely approximates my day-to-day experience designing solutions with my teammates.
Case in point, when asked how I’d build Slack, I spent most of the time on data persistence because slack stores all data forever even on the free plan. I got rejected because, “we don’t care how they store data.”
Ok, but that’s still a key part of the system design…
We also covered other areas like messaging, authentication, authorization, read / write paths, etc… so it was very strange to get the response from the senior manager I got.
I can assure you that it absolutely does work at Google.
I've done multiple interviews at Google, and have received a job offer from them, and every question I got asked was one that I had heard of before. (This was for an L4 position, so mid level. Also, it doesn't matter what happens at L6 or higher, as that is comparative rare for almost anyone who is doing interview practice).
Maybe your question is super secret, but the vast majority of other people's questions are not.
I'm not sure, however, what if anything testing by algorithms proves. Sure, you should know how and when to use them like I know how and when to use different blades of a saw. Nobody has ever asked me to tell them how the saw gets made though. The things that matter to me as a Senior+ engineer these days are:
- Do you know how and when to use various algorithms
- Are you going to conform to a given code bases styling and standards
- Do you know how to properly test a given piece of functionality
- Do you know how to interrogate the debugger to find answers to your own questions
- Do you know commonly accepted standards and where to find them
- Are you going to over engineer and completely pollute the code base with unmaintainable code or infrastructure
Algorithms and systems design test for only one of the above. If we ever get a tech union algorithm interviews are on a top five of things I'd like them to do away with.
Don't memorize it, learn it, become good at it.
No matter how much you memorize, there's going to be something you don't. But I think you know that.
Once you get the job, sure learn it. Unless your job doesn't require it or you're not that interested.
But, online we need to be pedantic. That's rule 1.
You mean that they remember common patterns to solve problems? Or they memorize questions verbatim?
A person with a deep passion for algorithms might be tempted to try to solve it themselves before checking the answer - which can be a time consuming business. Time your competitors have used to memorised the answers to 25 more questions.
ldjkfkdsjnv has exaggerated a bit, to be provocative - but I've certainly had interviewers ask me questions that stumped the greatest minds in computer science for 25+ years; I don't know what they were expecting if not memorisation.
But that wasn't FAANG that's pretty exceptional.... Most stuff is DFS, memorization, etc... Things that are good principles and don't have "this one weird trick"
Furthermore, if you have a memorized solution, you can spit that out in 5 minutes, and then spend the next 30 minutes trying to figure out the slight change that you need to do to make it work for the minor change that was made.
Speed matters. And having stuff memorized makes everything else easier.
Then I guess you won't be very good at interviewing.
> Then what are you supposed to do?
Get better or give up. Your choice.
You'd have to request reasonable accommodations if you have a provable and medically documented disorder.
But also it would depend. A company is allowed to not hire someone if the person is not able to do the work. A company is only required to give reasonable accommodations.
When I interviewed at a google and netflix, not one of the coding questions were on any site (leetcode or hackerrank) because I wanted to look at the solutions afterwords.
It was only microsoft that would ask the common canned questions.
They are a pile of trash who are more than happy to place travelers in dangerous scenarios, while moving refund goalposts down the infinitely+long field.
Any mention of the company is advertising, whether you want to believe it or not.
Thank you for pointing that out.
[Citation needed]
Memorization isn't the one variable we should be solving for. God forbid people take notes in meetings as opposed to remembering every word that was said
I have no idea if this really works though, it seems insanely tedious and also there aren’t that many companies to roll the dice at.
I guess that's how memorization works.
There are lots of ways to cheat in those contexts. The most obvious way that is close to undetectable would be having a second person looking up the answers, and telling them to the candidate, while the interview is happening.
• What is an SSL certificate? Follow up question: What is inside them?
• How would you go about designing a modern NTP to sync a fleet of local-first systems?
• Do you see a security problem with this code? If yes, what is it and how would you fix it?
• Same question as above but with twelve different pieces of code, each one more complicated than the previous one.
• What would you consider Personal Identifying Information (PII) in a food delivery app?
• Explain XSS, SQL, XSRF…
• Hashing vs. Encryption
• How to protect customers from phishing attacks?
• Say you discover a data leak, for example, a backup in a public S3 bucket. Communicate leak or not? If yes, who will you communicate with? How will you communicate?
• Improve event processing logic and performance of the following Java application. Our company revolves around processing events, quickly. Implement the alarm system to monitor incoming events for any delays in processing events by other event processors. (If you find it surprising that Apple uses Java, I share that sentiment. Interestingly, I opted for Go instead of Java to solve the problem during the interview, and the interviewers were pleased to explore a new programming language. I believe this aspect earned me some additional points.)
• Design a table booking system for a restaurant (database, API endpoints, etc.)
• A continuous integration (CI) build step fails (in tests), what do you do?
• What is your ideal Developer→Customer feedback loop? Realistically, what would a bad one look like?
• How would you design macOS Photos.app? (The best part of the interview was a discussion about what to do with content that is out of view and the performance implications of different solutions.)
• Third-party company wants Apple’s data to show ads. What do you do? (The obvious answer is you don’t give the raw data to them, but if you have to, how do you anonymize it?)
• so on and so forth.
There was this interviewer who appeared to be commited to ask me one hundred questions in the span of an hour, and while I didn’t count, I think we got pretty close to a hundred. The questions started at an easy level, for example, what is HTML, and increased in complexity every five minutes or so. Fortunately, I realize what type of interview this was and proceeded to give very one-sentence answers, sometimes just 2-3 words before jumping to the next question. One of the funniest, craziest, most exhausting, but somehow rewarding interviews I have ever had in my whole career. At times I thought the interviewer was some sort of artificial intelligence and the webcam was fake. Later, I met the interviewer in person and we became friends.
Now, having become an insider, I can attest that it’s acceptable to some extent to memorize responses for coding exercises and rehearse answers for behavioral questions. As you rightly point out, many other candidates engage in these practices as well. However, if a candidate’s proficiency is limited to merely regurgitating code without a genuine understanding and, consequently, an ability to articulate the underlying concepts in both the programming and behavioral interviews, that candidate is likely to face failure.
Before landing the job at Apple, I was also in the interview process for a position at Microsoft. The nature of the work appeared to be significantly more fulfilling than what I currently have. The level of technical expertise required during the interviews was remarkable, with the two medium and hard level LeetCode-style questions being the relatively easier segment. Memorizing answers was technically impossible based on the interviewing style. I would have unquestionably accepted that job if it weren’t for the fact that I needed additional income to continue providing for my extended family and covering my mortgage.
In conclusion, if you decide to memorize LeetCode problems, ensure that you also grasp the underlying concepts. Unless all your interviewers are gullible, it will become quite apparent if you're just mechanically writing code without a genuine understanding of the problem or the interview's objectives.
You aren't just supposed to solve a problem (and can't think back to your college years, pull out your copy of CLRS, or whatever). You are supposed to rapidly pattern-match to a specific problem type, and implement. You only have 20-30 minutes (because the rest of the hour gets eaten up by small talk) and this includes testing. Anyone who thinks they can do this with just their knowledge of algorithms without any grinding is in for a shock.
Success in interviews often stems from a combination of preparation methods and understanding deeply what you're being interviewed for.
With Onsites.fyi, our goal is to provide those insights and data points so you can prioritize those high-impact topics and focus on deeply learning the material rather than an aimless review of everything.
This is the key to standing out in today's competitive job market.
Ignore all study materials. Go to leetcode.com and literally memorize the most common questions for the company you are interviewing at. This is what your competition is doing. DO NOT LEARN THE MATERIAL. Just memorize it
Do the same thing for system design. Memorize the answers word for word. DO NOT LEARN THE MATERIAL.
The highest paid tech jobs go to candidates that regurgitate perfect answers to interview questions. Anyone claiming otherwise is lying or doesnt understand whats going on.