Ezvor

1500. Design a File Sharing System

MediumHash Table Preparing judge… LeetCode
Hash TableDesignSortingHeap (Priority Queue)Data Stream

Hints

Hint 1
Try to solve it by keeping for each file chunk, the users who have this chunk.
Hint 2
Try to solve it by keeping all the users in the system with their owned chunks, and when you request a chunk, check all users for it.