Skip to main content

Boundary Battery

Challenge on lesson: Checkpoint: Defensive C++

CHALLENGE
Difficulty: advanced+25 XP

Implement all four checked operations. Adversarial extremes (INT_MAX, INT_MIN, empty vector, division by zero and INT_MIN/-1) must return nullopt โ€” the naive versions are UB.

Back to lesson: Checkpoint: Defensive C++