Meta | Phonescreen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-02-11Added By Anonymous
Source: Link

Company: Meta
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

I recently had a phone screening with Meta.
These are the two questions asked during the interview.

Q1. https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/?envType=company&envId=facebook&favoriteSlug=facebook-thirty-days
Q2. Given an int array find the second highest value after arranging the numbers in such a way that they form the largest possible concatenated number.
Eg: input = [1,2,3,4,5] output = [5,4,3,1,2] EDIT: input array is always single digit: [0-9]

I was able to solve the first one but it ate up majority of the time. Barely got any time to discuss on Q2.
I doubt Ill make it to the next round.

Good luck to anyone preparing for phn interview.. Hope this helps :)

Comments