forked from University/epr24pr42-ojanssen2
12 lines
240 B
C++
12 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
|