Change Directory
Implement a function that simulates the 'cd' (change directory) command, handling both relative and absolute paths. Handle edge cases such as invalid paths and proper resolution of '.' (current directory) and '..' (parent directory) references.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early July, 2026
Meta
Staff
Hello Interview Premium
Your account is free and you can post anonymously if you choose.