Hello, Leetcode community,
As an attempt to give back to the community I am sharing my interview experience with Facebook recently.
First of all, I would like to express my gratitude to Leetcode and the community at large. Leetcode gave a structure to my preparation. And I would say that the discus section was really helpful for the preparation.
I spent about three intense months on the preparation for the Facebook interview. It was a very focussed preparation for Facebook. Here I would like to mention that I have already appeared for an FB interview in the past and failed. This was my second attempt. So I had some idea of what to expect. I took the premium subscription and that helped.
It was one telephonic round and five virtual onsite rounds.
To be fair to the interview process and still be helpful for folks preparing, I would just give the high level of what I was asked. But I highly recommend the first ~200 questions (by frequency) by Company on Leetcode.
Telephonic round:
1) An easy problem around adding two string input to int output
2) A medium around the "parentheses" group of problems
Virtual onsite:
Round 1:
1) Behavioral questions around past experiences
2) An easy question around binary search on a Tree
Round 2:
1) An easy question around binary Tree
2) Some variation of merging interval problem
Round 3:
1) Designing a library similar to Picasso/Glide. Talked about the interface APIs. Image/data/memory handling in a Mobile environment
Round 4:
1) A variation of the Task scheduler problem from Leetcode
Round 5:
1) Something around iterator
To be very honest, Facebook recruiters are very open about the interview process and help you thoughout. They also let you talk to one of the current FB enginner to know more. I would suggest take advantage of this opportunity. Also I found it little easier to crack FB interview than some of the mid-tier companies interview. But that is just my opnion. During this time I interviewed for about a dozen companies, but FB was the only one I could get an offer from. Anyways, you just need one offer. And I always wanted to work for FB.
At last I can only say that there is no alternative to hard work and having faith and hope will guide you through the tough time. I wish all you folks the very best.
Whether you think you can, or you think you can't - you're probably right.