Meta E4 Onsite | Passed

Anonymous User
6525
Jan 16, 2025
Jan 17, 2025

Had final onsite early Jan for US location. Heard back from recruiter that I had strong signals from all interviewers.

Prep:

  • Did top 100 sorted by freq descending for 30 day, 3 month, 6 months period.
  • Felt like this thoroughly preparred me. Even if i got a question that was not from top 100 list, I probably would have been able to solve it on the spot

Coding Round 1:

  • 680 : Valid Palindrome II
    • Started out like this
    • Was asked to think of edge cases like what if input has spaces or punctuation. Sort of evolved into 125. Valid Palindrome
  • 863 : All Nodes Distance K in Binary Tree
    • Tree nodes did not have parent pointers. Said that to go exactly K nodes away, we would need graph traversal and need to go up, so told interviewer that we needed to create graph.
    • Created a new graph with Node.connections = [list containing parent, left, right nodes], but interviewer seemed unhappy that I created an additional graph object to store left right nodes when I only needed to store parent nodes
    • Defended this saying that it would make the code to do bfs traversal a little cleaner at the end and O() space stays the same for any number of connections we record, but still didnt seem like a huge fan of duplicating the entire tree

Coding Round 2:

  • 65 : Valid Number
    • Was really dreading this one and didnt practice it until 2 hrs before my interview. You could probably guess the shock i was in when this was the question asked lol.
    • Was asked to think of edge cases and asked about 0 and its variants (0, 0., .0, 0.0, etc).
    • Got stuck coding the ^ edge cases but with hint was able to get it.
  • 347 : Top K Frequent Elements
    • Gave 3 approaches with time and space complexities: sorting, heap, quick select
    • Interviewer asked to code heap-based approach.
    • Follow up question was to make it O(n) constant time, not O(n) avg time (quick select does not work here)
    • Answered with bucketing, but got stuck on how to correctly bucket on either frequency or the number itself.
    • Took a stab at one of them, time ran out and interviewer said it was actually the other one.

System Design:

  • Infra but for the most part, they will probably not distinguish infra/product for E4 level.
  • Signed NDA, and question not on HelloInterview but very generic if you follow all the design leetcode/strava/uber/tinder types of questions.
  • Highly, HIGHLY recommend getting a 3-round mock interview for system design if this is your first time doing a system design interview. Think this honestly helped me the most, and if I gave the same performance as I did during my first mock interview, doubt I would have passed the interview.

Tips:

  • System Design
    • Always mention back of the envelope calculations (at least vaguely). I have done a total of 5 system design interviews, and found that some interviewers didnt care while others expected/were waiting for it to be brought up. Better to just casually mention things like, we have this DAU, we can expect a call spike of 10% for peak traffic, and our system should handle DAU * 10% or something along those lines in both the write/read heavy paths. Its small enough where its not hard to do, and yet something tangible for the interviewer to feel satisfied if they were looking for it or not, but it also shows that you are concerned about how to scale the read/write paths separately and proactively. So it sort of acts as a double benefit if you make it work to your advantage
  • Coding
    • All my coding interviews highly stressed looking for validation testing. They usually provide some example cases at the start of the problem. After coding, proactively say you'll take 2-3 of these and test against your code.
    • Make sure you are testing against your code, not an algorithm. Your code can have bugs/typos, this is what they are looking for, if you can catch your mistakes on the fly. Meta emphasizes being quick on your feet.
    • My coding interviews also stressed lots about edge cases. What are some other inputs we can provide? What are some valid inputs but might not satisfy our use case? This could also cause the original problem to expand to some common variant they ask.
      • What if the input to ValidPalindrome contains spaces or misaligned capitalization or punctuation. How do we handle those cases?
      • What happens to our coding solution as K is really big or really small in All Nodes Distance K in Binary Tree. If we use BFS approach and our K is small, we immediately exit right away which is nice. But what happens when K is really large, maybe larger than the max depth of the tree? These are the types of edge cases they like probing for, even if they seem impossible/unlikely.
Comments (32)