| 1 | // Solution 3a |
| 2 | |
| 3 | auto solve() -> int { |
| 4 | vector v = { 2, 1, 3, 5, 4 }; |
| 5 | auto a = numeric_limits<int>::max(); |
| 6 | auto b = numeric_limits<int>::min(); |
| 7 | for (auto e : v) { |
| 8 | a = min(a, e); |
| 9 | b = max(b, e); |
| 10 | } |
| 11 | return b - a; |
| 12 | } |
nothing calls this directly
no outgoing calls
no test coverage detected