-
Consistent hashing
Before diving into consistent hashing, let’s understand the naive approach first. Naive: Distributed hashtable based on modulo Sharding can be achieved via a simple modulo shardNumber = hash(key) % TOTAL_SHARDS The hash function might differ based on expected properties of the key. If the key is an auto-incremental user_id, then hash(key) = key hashing might […]
-
Facebook friends
This question is similar to the “Route Between Nodes” from this book. Problem Consider a popular social networking website, Facebook for example. People can create their own profile and add friends. Given two Facebook profiles, I want to find out how to get from profile A to profile B starting from A’s friends. Output all […]
-
Validate BST
My usual mistake for this problem: You can not just compare node.left.value < node.value < node.right.value. This does not handle edge cases such as: 10 / \ 5 20 \ 20 20 is > 5 but it should be lower than 10! You have to make sure the left one is lower than all the […]
-
Arrays
A way of organizing data that enables efficient storage, retrieval, and use. An array is just a sequence of elements stored linearly. See Contiguous allocation. Languages such as C# and Java have fixed-length arrays, not Python though. Arrays vs Lists? An array is useful when you know the data is fixed length, or unlikely to […]
-
Understanding Unconscious Bias
Because interviewees are tomorrow’s interviewers. When working with different members of your team, it’s essential to keep in mind that they come from a variety of backgrounds and experiences. Some of which will be different from your own. Let’s talk about unconscious bias and how it might impact your life, your work and your relationships […]
-
The site is slow
The Site is slow is an open-ended system design interview question. It is a collaborative problem-solving exercise that asserts the breadth of a candidate’s knowledge. At the same time, it allows the interviewer to dive deep into dedicated topics and test how much depth a candidate has in a variety of problem domains, from networking […]
-
Amazon AWS EC2 instances propagation time
This is one of my favorite coding interview questions at the moment. This question reflects a realistic real-world problem. It’s not just an artificial question not rooted in any form in reality. Problem statement Ec2 enables customers to rent virtual computers on which to run their own services. When a request comes from one EC2 […]
-
Interview coding question checklist or canvas
Having a rigorous procedure to approach a coding question is vital to nail your tech interview. You can think about the interview coding question canvas as a checklist to go through each time you approach a new coding problem. I divided the canvas into different sections. I always start answering a coding interview question by […]
-
Amazon coding interview questions
Psst! Download my 6-steps guide to prepare for the behavioral interview. This is the fourth article of our guide to preparing for a Software Development Engineer (SDE) interview with Amazon. Prepare for Amazon behavioral interview questions 9 Amazon behavioral interview tips 10+ Amazon coding interview tips Amazon coding interview questions A quick search on Google […]
-
10 Amazon Coding Interview Tips Revealed
Psst! Download my 6-steps guide to prepare for the behavioral interview. This is the third article of our guide to preparing for a Software Development Engineer (SDE) interview with Amazon. Prepare for Amazon behavioral interview questions 9 Amazon behavioral interview tips 10+ Amazon coding interview tips Amazon coding interview questions In this post, we will […]
Designed by Mocki.Co in Canada.
We believe you deserve a chance to receive truthful interview feedback and improve yourself. No matter which company you apply to:





❤️ If you are passionate about interviewing, join our team. Reach out to us.