Design memory chunk locking mechanism for read and write
Filed under Amazon
The question
Design a data structure for memory represented in chunks. Implement functions isRead() and isWrite() to determine lock compatibility when multiple processes request continuous chunk read or write locks.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.