Meta E5 screening
- Posted
- 1 Apr 2025
Summary
I had a screening interview at Meta for an E5 role where I was asked two specific data structures and algorithms questions.
How it went
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
Questions asked (2)
- 01
Buildings with an Ocean View
Data Structures & Algorithms · Medium
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
- 02
Lowest Common Ancestor with Parent Pointer
Data Structures & Algorithms · Medium
Lowest common ancestor of two nodes in a tree where Node class has parent node poiner as well