The Harvey onsite coding round asked me to implement an in-memory file and directory system called a Vault. The problem started with basic file insertion and directory listing, then added duplicate-name handling where conflicting files needed to be automatically renamed before being stored
Interview Details
Coding — In-Memory Vault File System
Harvey users can upload files into a Vault and organize those files using folders. The task was to implement an in-memory representation of that directory structure.
Part 1 — Add and List Files
Implement:
add_file(path)
get_files(path) -> str[]
add_file(path)
get_files(path) -> str[]
add_file(path)
Unlock Full Details
Create a free account to unlock this interview experience report.