Meta E5 screening

meta logo
meta
E5
April 1, 20254 reads

Summary

I had a screening interview at Meta for an E5 role where I was asked two specific data structures and algorithms questions.

Full Experience

Question 1: Given a list with each entry represnting height of buildings, return the index of the buildings which have ocean view. the ocean is on the right side of the array

Questions 2: Lowest common ancestor of two nodes in a tree where Node class has parent node poiner as well

Interview Questions (2)

Q1
Buildings with an Ocean View
Data Structures & AlgorithmsMedium

Given a list with each entry represnting height of buildings, return the index of the buildings which have ocean view. the ocean is on the right side of the array

Q2
Lowest Common Ancestor with Parent Pointer
Data Structures & AlgorithmsMedium

Lowest common ancestor of two nodes in a tree where Node class has parent node poiner as well

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!