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.
Press Submit to check your solution.
Back to lesson: Checkpoint: Defensive C++