Initial Course
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace control_flow {
|
||||
|
||||
[[nodiscard]] auto sum_range(int from, int to) -> int;
|
||||
[[nodiscard]] auto factorial(int n) -> long long;
|
||||
[[nodiscard]] auto count_occurrences(const std::vector<int>& data, int target) -> int;
|
||||
[[nodiscard]] auto first_index_of(const std::vector<int>& data, int target) -> int;
|
||||
|
||||
} // namespace control_flow
|
||||
Reference in New Issue
Block a user