Code RoomVerify adjacent feature impact
MediumPrep Room Coding #4390

Verify adjacent feature impact

Vibe & agenticAlgorithms & data structuresMid–Senior~16 min

An AI agent refactored your `applyDiscount(cart, code)` function to support a new percentage-off coupon type. The new coupon works in your test. But `applyDiscount` is also called by the gift-card flow and the loyalty-points flow. Describe how you'd confirm the change didn't break those adjacent features before merging.

Implement
find_changed_flows(flows: list[str], totals_before: list[int], totals_after: list[int]) → list[str]
Examples
in[["checkout","gift_card","loyalty"],[1000,500,800],[900,500,800]]out["checkout"]
in[["checkout","gift_card","loyalty"],[1000,500,800],[900,450,800]]out["checkout","gift_card"]
in[["checkout","gift_card"],[1000,500],[1000,500]]out[]
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.