Design an In-Memory File System with ls/cd/add/remove
Problem: Design an In-Memory File System
Implement a simplified in-memory file system that supports shell-like directory operations.
Initially, the file system only contains the root directory `/...
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:
