Facebook Technical Interview | NY | Two Rounds | Rejected
Company: Meta (Facebook)
Role: e3, e4
Interview Stage: Phone Screen
Location: New York
Year: unknown
Original Post Content:
Process started with email from FB recruiter. It took around 2 months. They give you result almost immediately, I mean same day or next day.
First Interview:
Q.1) Finding longest sequence type something, easy question. It took few mins to code and dry run one/two inputs.
Q.2) Trie based question. Interviewer made it two parts. First part was most important and second part if I can't code because of time as long as I can just explain the process should be fine.
I picked the perfect data structure and also coded second half of the problem. A little portion I just explained. Interviewer was saying code is perfectly structured and no issue at all.
Not sure why, they did another follow up coding interview.
Second Interview:
Q.1) Matrix related search based question. I offered two solutions. One is binary search on each row and another start searching from top right corner and progress toward the left side of the matrix. And then he asked me to compare both solutions and I preferred diagonal search as it prunes the search space as it switches the row depending on the data set.
Even though I knew second solution works for granted and was best solution based on leetcode, still I asked him whether he likes it or not. Whether it will work or not. I think he wasn't aware of that solution and said I'm not sure, maybe we can see some code.
After I coded the solution, he gave 4 different input sets to dry run. Program was correct and by this time we kind of ate up the time for second question.
Q.2) CPU Task scheduling, including question all together we had 5-7 mins. Couldn't complete the code.
He ate the whole time understanding first solution and punished me for the code clarity and code speed.
Got rejected even though questions asked were almost known.
Process is so intimidating. If you want to hire only world finalist competitive programmers, call them. Stop randomly searching LinkedIn and putting some regular software engineers into this intimidating process pipelines and catching if they come out to be gold.