Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e362b7a

Browse files
authoredMar 12, 2025··
Update generateSequence.hpp
1 parent 6f4e5d7 commit e362b7a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎homework/generate-sequence/generateSequence.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
#include <vector>
33

44
std::vector<int> generateSequence(int count, int step) {
5-
65
std::vector<int> vec{};
76
int temp = step;
8-
97
if (count > 0)
108
for (std::size_t i = 0; i < count; i++)
119
{
1210
vec.push_back(temp);
1311
temp += step;
1412
}
15-
1613
return vec;
1714
}

0 commit comments

Comments
 (0)
Please sign in to comment.