Initial Course
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "loops.hpp"
|
||||
|
||||
namespace control_flow {
|
||||
|
||||
auto sum_range(int from, int to) -> int {
|
||||
(void)from; (void)to;
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto factorial(int n) -> long long {
|
||||
(void)n;
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto count_occurrences(const std::vector<int>& data, int target) -> int {
|
||||
(void)data; (void)target;
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto first_index_of(const std::vector<int>& data, int target) -> int {
|
||||
// TODO: Return index or -1 if not found
|
||||
(void)data; (void)target;
|
||||
return -1;
|
||||
}
|
||||
|
||||
} // namespace control_flow
|
||||
Reference in New Issue
Block a user