Skip to main content

Incident Response Gauntlet

Challenge on lesson: Checkpoint: Debugging

Two skills in one: classifyCrash (per the module-13 contract) and repairMedian — the incident: medianOf was reported to crash on empty input (it indexed v[0] before checking). Repair it: nullopt when empty, true median (average of two middles, as double) otherwise.

Difficulty: advanced

Back to lesson: Checkpoint: Debugging