forked from University/epr24pr42-ojanssen2
11 lines
240 B
C++
11 lines
240 B
C++
#include "MathUtil.h"
|
|
|
|
namespace game {
|
|
int MathUtil::get_min(const vector<int>& numbers) {
|
|
int i = numbers[0];
|
|
for (const int j : numbers)
|
|
if (j < i)
|
|
i = j;
|
|
return i;
|
|
}
|
|
} // game
|