Design an In-Memory Vault File Directory System

Implement an in-memory Vault file-directory system. Users organize uploaded files in folders.

Implement:

add_file(path: str) -> str
get_files(path: str) -> list[str]

Path rules

-...

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: