Facebook (Meta) | Phone | Enterprise Engineer IC 3 | 2021 (Reject)
Anonymous User
5531

Q1: https://leetcode.com/problems/first-unique-character-in-a-string/
Q2: https://leetcode.com/problems/top-k-frequent-elements/

Got a rejection notification from my recruiter one week later.

My mistakes and learning:

  1. I should use minHeap instead of maxHeap for the second question.
  2. I should improve for the second question using bucket sort instead of the heap.
  3. I had a mistake to mention the time complexity of the heap as O(n). Even though, I clarify O(n log n) after getting the hints from the interviewer.

After I completed my phone screen, 5 minutes later I realized I made those mistakes. I thought like "That was a minor mistake. I think I have a chance to move onsite."

However, I got rejection :)

Comments (12)