Bridge·Software Engineer·Technical Phone Screen
May 2026
Interviewed for a software engineering role at bridge.xyz and got a classic path simplification problem. Nothing too wild, but the edge cases kept me on my toes longer than I'd like to admit.
- Given an absolute Unix-style file path, write a function to return its simplified canonical form. Handle dots, double dots, consecutive slashes, and trailing slashes correctly. Walk through your approach, analyze the complexity, and cover a few test cases.
“Stack-based solution came to me pretty fast but I fumbled explaining the '..' at root case.”