Database Connection Pool
Asked at Harvey · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
Onsite coding round: given a mocked `db.query`, implement a connection pool — `acquire()` to hand out a connection and `release()` to return it — managing a fixed set of reusable connections.
Loading the problem…