← Back to Difficulty Selection

Code Review (Easy): Cleaning the Breadcrumbs

Story

Lena noticed that when users navigate the file system in the new internal dashboard, the address bar often looks messy with extra slashes and confusing dots. Mark pointed out that while these shortcuts work for a terminal, the interface needs a single, clean version of the path to keep the breadcrumbs consistent. Lena is writing a utility to resolve these paths by removing redundant markers and correctly applying "go back" commands. Eva reminded her that it should correctly handle cases like "/docs/./drafts//../final/", which should simply become "/docs/final".

Your Task

Read the story and code, then decide if the code is ready for production or needs improvement.

Hints

What would block an approval? Give me a hint.

Next

Check out Next Topic: Organizing Build Logs

Cookies help us track your progress - nothing extra.