Code RoomVerify stakeholder explanation accuracy
MediumPrep Room Coding #4436

Verify stakeholder explanation accuracy

Vibe & agenticAlgorithms & data structuresMid–Senior~16 min

A PM asks you to explain why a recent latency regression happened, and you use an AI to draft a plain-English explanation of the root cause (an N+1 query introduced by a lazy-loaded ORM relation). The AI produces a tidy analogy: 'It's like the database had to make a separate trip to the store for every item instead of one big shopping trip.' How do you verify an AI's simplification of a technical issue isn't misleading before you send it to a non-engineer stakeholder?

Implement
count_query_round_trips(strategy: str, item_count: int, batch_size: int) → int
Examples
in["lazy",50,25]out51
in["eager",50,25]out2
in["batched",50,20]out4
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 16 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.