You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
269 B
18 lines
269 B
5 years ago
|
#ifndef DUMMY_LIB_HPP
|
||
|
#define DUMMY_LIB_HPP
|
||
|
|
||
|
#include <vector>
|
||
|
#include <algorithm>
|
||
|
|
||
|
namespace performance_measuring {
|
||
|
|
||
|
int compute(const std::vector<int>& v)
|
||
|
{
|
||
|
int min = *std::min_element(v.begin(), v.end());
|
||
|
return std::count(v.begin(), v.end(), min);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|