Practice
/

Simplify Path

Simplify Path

Given an absolute Unix-style file path, simplify it by resolving '.', '..', and multiple slashes to produce the canonical path.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.