Path Normalizer
You're building a simple Linux-style file manager. Paths use forward slashes, "." means "the current folder" (a no-op), and ".." means "go up one folder". Multiple consecutive slashes collapse into one. Given an absolute path string `path`, return its normalized form: starts with a single "/", has n
You're building a simple Linux-style file manager. Paths use forward slashes, "." means "the current folder" (a no-op), and ".." means "go up one folder". Multiple consecutive slashes collapse into one. Given an absolute path string `path`, return its normalized form: starts with a single "/", has n