Meta Loop

meta logo
meta
May 9, 20254 reads

Summary

I'm sharing the interview questions encountered during my Meta interview process, across multiple rounds.

Interview Questions (4)

Q1
Buildings With an Ocean View
Data Structures & Algorithms

Given an array of building heights, return a list of buildings that have an ocean view. A building has an ocean view if all buildings to its right are strictly shorter.

Q2
Variant of Remove All Adjacent Duplicates In String
Data Structures & Algorithms

A variation of the problem where you remove all adjacent duplicate characters from a string until no more duplicates can be removed.

Q3
Lowest Common Ancestor of a Binary Tree III
Data Structures & Algorithms

Find the lowest common ancestor of two given nodes in a binary tree where each node has a parent pointer.

Q4
Random Pick with Weight
Data Structures & Algorithms

Given an array of positive integers w, where w[i] describes the weight of index i, implement the function pickIndex which randomly picks an index in proportion to its weight.

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!