Skip to content
Sharp

Interview Strategy · interview question

What is the healthiest performance judgment around performance interview answers?

Multiple choiceHardchapter-16-curatedpremiuminterview-strategyperformance-interview-answers
python
def explain_perf_change(before_ms: float, after_ms: float) -> str:
    return f"{before_ms}ms -> {after_ms}ms with measured evidence"
Choose one answer
Answer and explanation

Correct answer

A. Measure before optimizing, then change the part that actually dominates cost instead of guessing from style alone.

Why

Premature optimization is usually weaker than targeted optimization backed by measurement.

Test yourself on Interview Strategy

A free test with instant, explained results. No account needed.

Start free test
All Interview Strategy questions →