# Delete Duplicate Folders in System (LeetCode 1948) ## Approach Trie of paths; mark duplicate subfolders for delete. ## Edge cases Draw a small example on the whiteboard and narrate invariants. ## Practice tip Talk through invariants while coding so the interviewer can follow your reasoning. Practice with [the Linkjob AI app](https://www.linkjob.ai/).