OpenAI

Verified interview challenge

Resolve paths with home expansion and symlinks

Extend a path resolver from relative navigation to home expansion and symbolic links.

Unlock with Full Access

The challenge

The same resolver grows across three parts as its inputs and behaviour expand. Start with relative destinations, then handle absolute paths and home expansion before resolving symbolic links. Work with the supplied path data rather than a real filesystem, preserving the meaning of each component as the path is processed.

What you'll practise

  • Path semantics

    Handle navigation components consistently across relative and absolute inputs.

  • Incremental requirements

    Extend the resolver without breaking the behaviour established in earlier parts.

Your coding workspacePreview
Current partFurther parts unlock as you progress
solution.pyPython 3.13
# Build on your implementation

# Run checks for the current part

# Full starter code included
Current-part checks

Run your code to see results.

The complete sequence, starter code and checks are included with Full Access.