This practice problem asks you to compute statistics from a map of data. For example, find the key with the maximum value, or sum all values. Finding max value: int maxVal = 0; string maxKey; for (auto& [k, v] : myMap) { if (v > maxVal) { maxVal = v; maxKey = k; } } Summing values: int sum = 0; for (auto& [k, v] : myMap) { sum += v; } Or use accumulate with a lambda.
Practice these patterns until they're automatic. Map statistics appear in many problems: counting frequencies, finding most common elements, aggregating data by category.