epr24pr42-ojanssen2/Util/MathUtil.cpp

12 lines
240 B
C++
Raw Normal View History

#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