Meta | Facebook | Technical (Phone) Screen | Mid level Software Engineer (Java)

meta logo
meta
Mid level Software Engineer (Java)Ongoing
November 5, 202521 reads

Summary

I recently completed my first technical phone screen at Meta for a Mid-level Software Engineer role, where I was tested on two data structure and algorithm problems.

Full Experience

I just got done with my first technical screen in Meta for a Mid-level Software Engineer position, specifically targeting Java roles. The interview involved two distinct data structure and algorithm questions. I felt prepared for both, and I'm looking forward to the next steps.

Interview Questions (2)

Q1
Minimum Element in Each Level of Binary Tree
Data Structures & AlgorithmsMedium

Given the root of a binary tree, find the minimum element present in each level. This problem is similar to a standard level-order traversal, but the objective is to track and return only the minimum value found within each level. A follow-up question was posed: how would one achieve this solution with an O(log n) space complexity?

Q2
Sorted List Iterator for K Sorted Lists
Data Structures & AlgorithmsHard

Implement a `Sorted List Iterator` that operates on a collection of `k` sorted lists (given as a `List>`). The iterator should expose two primary functions:

  • public boolean hasNext(): Returns true if there are more elements to iterate, false otherwise.
  • public int next(): Returns the next minimum element across all `k` sorted lists.

This problem combines concepts from 'Merge K Sorted Lists' and an iterator design, specifically referencing an Airbnb interview question.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

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