Skip to main content

Practice ยท 2 of 3

minOf over a Pack

CHALLENGE
Difficulty: advanced+25 XP

Implement minOf(first, rest...) โ€” at least one argument, returns the smallest. Uses pack expansion (a fold with std::min works), and must also handle the single-argument call.

Back to lesson: Practice: Packs and Folds