Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Implement cd Command
Medium
Implement a simplified version of the Unix cd command. Given a current directory path and a relative destination path, return the final absolute path.
The path simplification should handle the following special symbols: ...
Asked at:OpenAI
More OpenAI interview questions
- Top 5 Open AI System Design Questionshard
- Toy Language Type Inferencehard
- Guess Number with Feedback Delaymedium
- Best Grid Jumping Pathhard
- Design a Spreadsheet with Formula Supportmedium
- Design Fault-Tolerant Work Queuehard
- Design Layered Rectangle Boardmedium
- Chat Message Events Aggregatorhard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.