meta logo
Meta· ML/AI

Meta Phone screening ML/AI London

Location
London
Posted
15 Jun 2025
344 reads

Summary

I had a phone screening with Meta for an ML/AI role in London. The interview included two Data Structures & Algorithms questions: one on making parentheses valid by removing minimum characters, and another on finding the Lowest Common Ancestor of two nodes in a binary tree, perceived as similar to finding an intersection of linked lists due to the input format. I successfully moved to the full loop after this interview.

How it went

Meta Phone screening

1- count all paranthese you need to remove to make a valid parenthese. I solved with loop and counting open and closed parentheses.

2- LC236 find lowest common ancestor of two nodes in binary tree. I solved it with map - TC O(N) SC O(N) ).

update -- in fact the question I got was similar to LC160 because they gave the nodes as input. --

as a follow up I discussed the optimal solution with O(1) SC

the idea being to determine the depth of the nodes and then move pointers accordingly. the interviewer did not ask me to code it.

feedback:

  • I was nervous so I named the functions to solve the problems func .. feedback told me the naming was bad
  • in problem 2 interviewer asked me if i want to do a dry run and if everything ok, I said yeah it is ok, then he mentioned an edge case and asked me what would be the output then I realized that i had a bug in the condition

I moved to full loop

Questions asked (2)

  1. 01

    Minimum Parentheses to Make Valid

    Data Structures & Algorithms

    count all paranthese you need to remove to make a valid parenthese.

  2. 02

    Lowest Common Ancestor of a Binary Tree

    Data Structures & Algorithms

    Find lowest common ancestor of two nodes in a binary tree. The question was similar to LeetCode 160 (Intersection of Two Linked Lists) because only the two nodes were given as input.
    As a follow up, the optimal solution with O(1) SC was discussed, which involves determining the depth of the nodes and then move pointers accordingly.

    Open the problem

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Meta recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!