Implement an In-Memory File System
Implement an in-memory file system that supports Unix-style absolute paths and the following operations:
mkdir(path): create a directory.touch(path): create an empty file.ls(path): ...
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:
