About this puzzle

The Connection Pool — practice the decision, scored against the optimum

What does the The Connection Pool puzzle teach?

Pool size is a U-curve — too small queues requests, too large wastes idle connections.

Why do interviews ask about this?

Connection-pool sizing is the classic “why is the DB slow” interview: too few starves, too many thrashes — find the knee.

How is it scored?

The engine computes the provably-optimal answer for the exact instance you played (dynamic programming, shortest-path, or exhaustive search — never a heuristic) and scores your attempt as a percentage of it. No login needed to see your score.