Skip to content

Commit

Permalink
generate-Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jarek1992 committed May 5, 2024
1 parent 87c62ec commit 9b29f07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions homework/generate-sequence/generateSequence.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#pragma once
#include <vector>
#include <iostream>

std::vector<int> generateSequence(int count, int step) {
// TODO: Implement me :)
return {};
std::vector<int> elements;
for(int i = 0; i < count; ++i) {
elements.push_back(step * (i +1));
}
return elements;
}

0 comments on commit 9b29f07

Please sign in to comment.