Code Room
Vibe codingMediumvc-g605
Subject Ai verificationLevel Mid–Senior~18 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

An agent rewrote a Python data-processing function and claims it's '10x faster' by replacing a loop with a vectorized NumPy/pandas approach. Spot-checking on your test data, the outputs look the same. Before you accept both the speedup and the correctness, how do you verify a performance refactor you didn't write?

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.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.