Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
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
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected