Design an In-Memory Unix File System

Implement an in-memory Unix-style file system. Use a trie or an equivalent hierarchical data structure to represent directories and files.

Initially, the file system contains only the root direct...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: