In-Memory File Store with Unique Names and Sequential IDs

Asked at Cresta · Coding Questions · Difficulty: Medium · Last asked Nov 6, 2026

Build a small in-memory file store. Callers upload named files and get back an id, then fetch, delete or list files by id. Two files may be uploaded under the same name, so the store renames the newcomer instead of overwriting.

Loading the problem…