Skip to main content

Practice · 1 of 1

Three Stats, Three Functions

CHALLENGE
Difficulty: beginner+25 XP

Implement min_of, max_of (both return int; empty vector returns 0), and avg_of (double, empty returns 0.0) over a vector of ints.

Back to lesson: Practice: Refactor Practice: Split the Monolith