Implement a Key-Value Store With Transactions (Go)
Problem
Implement an in-memory key-value store with set, get, delete, and begin/commit/rollback.
Example
begin(); set(a,1); rollback(); get(a) -> nil
Constraints
- Nested transactions roll back correctly
What to look for
Practical machine coding: clean Go, clear naming, and tests.
added …