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.

Loading…