Skip to content

Commit

Permalink
generate-sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
VeniGogniti committed Jul 2, 2024
1 parent 4e72f20 commit 3540932
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions homework/generate-sequence/generateSequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#include <vector>

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

0 comments on commit 3540932

Please sign in to comment.