Build an In-Memory File Vault with Duplicate-Name Handling

Quick Overview

Build an in-memory file vault that creates missing directories and resolves duplicate names with the smallest available numeric suffix. Support file addition and lexicographically ordered directory listings while handling extensions, hidden-style names, and independent path scopes.

Build an In-Memory File Vault with Duplicate-Name Handling

Company: Harvey

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Onsite

Quick Answer: Build an in-memory file vault that creates missing directories and resolves duplicate names with the smallest available numeric suffix. Support file addition and lexicographically ordered directory listings while handling extensions, hidden-style names, and independent path scopes.

|Home/Coding & Algorithms/Harvey
Harvey logo
Harvey
Aug 8, 2026
hardSoftware EngineerOnsiteCoding & Algorithms
11
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...