diff --git a/homework/generate-sequence/generateSequence.hpp b/homework/generate-sequence/generateSequence.hpp index 4b1ac80f..1a5287c3 100644 --- a/homework/generate-sequence/generateSequence.hpp +++ b/homework/generate-sequence/generateSequence.hpp @@ -1,7 +1,11 @@ #pragma once #include +#include std::vector generateSequence(int count, int step) { - // TODO: Implement me :) - return {}; + std::vector elements; + for(int i = 0; i < count; ++i) { + elements.push_back(step * (i +1)); + } + return elements; }