Amazon, Apple, Facebook | L5, ICT4, E5 | Seattle | April 2020, May 2020 --- Offer, Offer, Offer
Company: Meta (Facebook)
Role: e5
Interview Stage: Onsite
Location: Seattle
Year: 2020
Original Post Content:
Background: I am a Senior Software Developer in Microsoft. I work in the Azure cognitive services area and absolutely love my work. I have 9 years of development experience and 3 years of Sys admin experience. I have worked in many different teams and products. I started my development career as a device driver developer at Intel, moved to Sql server at Microsoft (didn't like it), then to Content Management Services and then to Cognitive Services (AI). I also had a brief stint at Lyft (7 months. Hated it.)
Current TC: $170 K. It is low and I am trying to fix it.
Quite a few people asked about the offer details.
Here it is:
Amazon: 150 base, signing bonus 68K, Stock: 140 K, vested over 4 years
Apple: 190 base, signing bonus 85 K, Stock: 450 K, vested over 4 years
Facebook: 195 Base, signing bonus 50 K, Stock: 500 K, vested over 4 years
Facebook
Phone Screen Find the number of subsequences such that min(subseq) + max(subseq) == k. I was able to finish it quickly but missed one edge case. The second question was min(subSeq) + max(subSeq) <= k. This was an interesting problem and I missed one edge case again. I was able to solve it with a hint but found the problem challenging because of the edge cases. Damn the edge cases :)
Here are some helpful links for this problem:
https://leetcode.com/discuss/interview-question/268604/Google-interview-Number-of-subsets
https://leetcode.com/discuss/interview-question/275785/facebook-phone-screen-count-subsets
Onsite (Video Conference):
Round 1
IsSplitPossible => Given an array of positive integers, is it possible to split the array in two parts such that the sum of parts is equal. This is a very easy problem using prefix Sum.
Merge K sorted Lists => Given k sorted lists, merge them into one lists. It is a direct application of heap (priority queue)
Round 2
Kth largest number in an array => Again a Heap question. I think I was distracted in this round because I missed some easy edge cases (e.g. k < 0)
Implement readline method using Read4k() => Not too challenging. I thought I solved it well but interviewer thought I missed a case.
Round 3
Jedi interview: All behavioral questions. Conflict resolution, impact blah blah blah. I am not sure how well I did. I am never sure how I perform in a behaviroal interview.
Round 4
Design an image download library/component/service => This was pretty straight forward.
Thoughts: The FB interview was a typical rapid fire FB interview. The first round was done in 25 mins. I found the coding and design questions to be straightforward. I missed some edge cases which is a little disappointing for me. I usually implement a ValidateInput() for every top level function I write in an interview. This is a heuristic I have developed to avoid such stupid mistakes but I missed it this time.
I got the offer in a week. The offer is almost the same as Apple. I am mostly likely going to pass the offer.
I have mixed feelings about FB. They don't give you much time to ask questions but their interviews are quick. The pattern is mechanistic and focus too much on leetcodish questions but I don't mind that. FB offers probably the best compensation in the industry but I am not sure about their code quality. I have worked with FB graph APIs as part of my work and these APIs are inconsistent. The GET response is entirely different from the POST body for the same resource. You can reply to a comment using the Graph API but the FB UI doesn't show them (Talk about side effects). It felt like the GET and POST APIs are developed by two different teams and they don't talk to each other.
I talked to a few friends at FB and I got an impression that FB has a cut throat work environment and the focus is more on speed (which is called Impact). Somehow, Facbook has a brand of the best engineer talent and culture in the world. I am skeptical about that. I think Google, Netflix and pockets of Amazon and Microofot has exceptionally good engineering culture but I am also skeptical about my own opinions :). I am prone to Cognitive biases just like everyone else.
Preparation: I am an anamoly when it comes to interview preparation. I didn't prepare for the interviews in the traditional sense. I love to solve algorithm puzzles and a voracious reader of all sorts book (including techcinal ones). I have been doing the contests for last few weeks and absolutely love them. I have been doing leetcode on and off for last five years. When I started leetcode, it only had 80 questions :). One can say that I am always in preparation mode but that will depend on your defintion of preparation.
For design, I have studied the now famous "gr-okking the System Design Interview" course. It is a good course but once you have solved the first four five questions, you notice the pattern and you can apply it to solve other problems. It focuses too much on the Scalability aspect of cloud(ish) services which are exposed through REST apis. If you have studied only this course, you will stumble if asked about other types of design problmes. My manger (amazing guy) likes to ask a compiler question during interview. He asks people to design the Type system of a modern language such as C# or Java. You would struggle to answer this question satisfactorily if all you have done is Leetcode or gr-okking the system design.
Here is what I have done in last 4-5 years.
Leetcode: 500ish questions
Hackrrank: 200ish questions
Project Euler: 100ish
gr-okking the Coding interview
gr-okking Dynamic Programming Patterns
Cracking the coding interview
Elements of programming interviews in Python (have done only a few problems)
Algorithmic Puzzles (only a few problems)
Programmign Pearls (bought the book but never read it)
Design:
gr-okking the System design interview
Highscalability.com
Several youtube videos about differnt systems
I also host a learn session in my team where we talk about various technlogies and patterns to solve problems. Sample discussions are NoSql (Cosmos DB), Deployment, Security (OAuth), Service Topology, NLP etc. I have signed up for countless udemy courses but finished only a few.
My learning has been organic and haphazard. I absolutely love the field of Computer science and Software development. There is no area of CS which is not interesting to me. I have been lucky enough to find a profession which matches my hobby. No matter where I work and how much I earn, I'd strive to learn more and become better at my craft.
Takeaways: India has an elite set of colleges called IITs -Indian Institute of Technology. You have to take a dreaded standardized test called JEE - Joint Entrance Examination - to get into any of these colleges. Kids start preparing for JEE long before taking the tests. It is a ruthless examination. You are ranked based on your score. It is an efficient process for eliminating candidates but crushing for the participants. A lot of students are burned out by the time they get into the college and lose all interest in studies. It also takes a heavy psychological toll on the unsuccessful candidates.
The interviewing process is turning into a JEE exam. The focus is on getting into one of the top companies and hope for the best. This is unhealthy. Computer Science is a fascinating field and Software development is lot more than writing code. I urge all of leetcode participants to look beyond algorithms and be curious about software, systems, life and other fields. It may sound counter productive but you will be a better and happier developer if you study other fields such as Math, Medical Science, Philosophy, History and Literature. Try to enjoy the process and stop comparing yourself to others. Failing interviews don't make you a failure. Clearing interviews don't make you a hero. By all means, strive for the best but keep it in perspective. There is shitty code at Microsoft, Facebook, Google and Netflix - I am not sure about Netflix though :) There must be beautiful code in the systems of Target, BBC, Epic Systems and Wikipedia. No one has a monopoly on excellence. Reach for excellence. Everything else will workout fine in the end.
If you read till the end then I am thankful to you. I encourage you to share your perspective in the comments.
Good Luck !!
Edit:
I am really happy that many people found my post inspiring. I try to read every comment but I may not be able to respond or advise. I don't have enough time. I'll send an e-mail and my LinkedIn profile if you wish to connect but please maintain my privacy. I am still employed fulltime and would like to keep the news of moving out a secret until an opportune moment.
To my fellow engineers out there, don't read too much in my story. As I have said in the post, my growth has been haphhazard. Don't follow it if you are looking for an optimal result. If you want to enjoy the journey then focus on your walking style, not your path.