In-Memory DB with per-key user lock: setByUser/deleteByUser/lock/unlock

Problem: In-Memory DB Variant — Add User-based locking

You are implementing a simplified in-memory database storing key -> record. This variant introduces users and a lock mechanism ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: