Swift Interview (Facebook/Meta)

Swift Interview with a Meta engineer

Interview Summary

Problem type
Odd Even Linked List
Interview question

  1. Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
    The first node is considered odd, and the second node is even, and so on.
  2. Given the root of a binary tree, return an array of the largest value in each row of the tree (0-indexed).

Interview Feedback

Feedback about Serpentine Hawk (the interviewee)
Advance this person to the next round?
Yes
How were their technical skills?
3/4
How was their problem solving ability?
4/4
What about their communication ability?
4/4

Hi Serpentine Hawk, hoping interview was insightful for you. You did well and would definitely get a hire signal if this was a screening interview, and could even get a hire signal for onsite (albeit not with high confidence). You came close to solving two questions. Just that your coding was a little slow, and you completely missed out on doing dry run for your code. That's pretty important. Here's my detailed feedback.

Feedback

Communication

Technical Knowledge

Problem solving skills

Coding skills

General Tips:

Interview Transcript

Quantum Wolf: Hello
Serpentine Hawk: Hi.
Quantum Wolf: Hi can you hear me?
Serpentine Hawk: Yes, I can hear you well.
Quantum Wolf: All right. How are you?
Serpentine Hawk: I am great. Thank you.

Quantum Wolf: I will try to mimic the exact real interviews that I take at Meta now. The interview structure is like this for coding rounds. It's a 45 minute round in the real interviews, first five minutes again, for introductions, followed by 30 minutes of problem solving, followed by five minutes at the end for you to ask any questions you might have.

Questions:

Steps of Problem Solving:

  1. Define edge cases.
  2. Write pseudocode.
  3. Ask clarifying questions.
  4. Discuss logic explanations.
  5. Code.
  6. Test with dry run.

Conclusion

Overall performance analysis includes clarity of thought in communication, understanding of technical knowledge, good problem-solving agility, and tackling complexities involved in problem solving.