New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Coinbase
Coding Question
AI Insights
Quick Summary
Design a flat-file storage system that supports adding files, copying them, and retrieving their sizes.
Strictly validate existence and uniqueness constraints for both source and target files during copy operations.
Treat all input paths as unique string identifiers without parsing directory hierarchies.
What This Tests
Hash Map utilization for fast lookups
System design and state management
Input validation and edge case handling
Time and space complexity optimization
Common Patterns
Hashing
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected