leetle

Daily challenge for 2025-08-30

242. Simplify Unix Path

Write a function solve that simplifies a given absolute Unix-style file path by resolving '.' and '..' and removing extra slashes.

Example:
Input: path = '/a/./b/../../c/'
Output: '/c'

Run this challenge interactively in Python or JavaScript when the app loads.