Meta·Software Engineer·Technical Phone Screen
May 2026
Meta coding screen, one question the whole time, path normalization for a cd command. Seemed straightforward but there are enough edge cases to trip you up if you're not careful.
- Implement a function that takes a current working directory and a path argument (as passed to a cd command) and returns the resulting absolute path. It should handle absolute paths, relative paths with dots and double-dots, multiple consecutive slashes, trailing slashes, and edge cases like cd-ing up from root or receiving empty input.
“Thought I had it locked in after the first few minutes, then the interviewer asked what happens when you do cd ..” 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