Challenge: Make Our Code Safer and Easier to Read

Complete this hands-on exercise to test your knowledge.

Problem statement

Write a function that takes two std::span arguments, each representing an array of integers or float values. Using structured binding, the function returns the sum of their elements, the minimum and maximum values from each array.


Get hands-on with 1200+ tech skills courses.