Meta·Software Engineer·Technical Phone Screen
Jun 2026
Meta coding screen, pretty standard stuff. One algorithm question, stack-based, nothing too wild but you do need to know your way around monotonic stacks or you'll fumble the explanation.
- Given two arrays where the first is a subset of the second, find the next greater element in the second array for each element in the first. Return -1 if none exists.
“The core idea clicked pretty fast for me: scan the second array with a monotonic decreasing stack and build a hash map as you go, then just look up each element from the first array.” The rest of the author's notes on Software Engineer interview at Meta, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post