Meta
More Experiences
Meta E5 screening
April 1, 2025 • 4 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