Meta phone screen

meta logo
meta
US5 years
April 21, 20254 reads

Summary

I had a phone screen with Meta where I was asked two coding problems: an adaptation of Merge K Sorted Lists and Clone Graph. I successfully solved both problems and am awaiting the results.

Full Experience

YOE - 5+
Location - US

Alright time to give back to the community !!

I was asked 2 problems


Was able to solve these problems. Looking forward to the result.

PS: Meta does not need you to run the code. So don't worry too much about the syntax. Make sure logic is solid.

Interview Questions (2)

Q1
Merge K Sorted Lists with getNext() Function
Data Structures & Algorithms

The problem was similar to Merge K Sorted Lists but with List<List<Integer>> as input instead of linked lists.
The aim was to implement a getNext() function that returns the next element in sorted order across all lists.
The eventual output of all calls to getNext() would be a sorted list containing all elements from all input lists.

Q2
Clone Graph
Data Structures & AlgorithmsMedium

The problem was to clone a given graph.

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!