LeetCode MEDIUM 71 Simplify Path Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Simplify Path
- Topics:
String,Stack
Problem gist
The task is to turn a Unix-style absolute path into its canonical form. A canonical path always starts with one slash, uses one slash between directory names, has no trailing slash unless the path is the root, and removes navigation tokens that do not represent real directory names.
Continue ...