Implement a CD Command

Medium · Coding

Implement a stack-based cd path resolver handling ., .., repeated slashes, absolute paths, and ~, extended with physical symlink resolution, cycle detection, and a stateful Shell supporting cd -.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems