Practice ยท 1 of 3
Checked Allocation Math
Implement checkedTotal(a,b,c) returning a*b*c or nullopt on ANY intermediate overflow. The battery uses SIZE_MAX-class extremes.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Practice: Hardening Battery