Design a file upload system with duplicate detection
Filed under Groupon
The question
Design a system to upload large files to a server one by one. If an uploaded file matches an existing file, return that file; otherwise, return a random file, remove it, and add the new file.
No write-up yet. Related questions below have one.
Related Groupon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.