Initial Course

This commit is contained in:
David Gil de Gómez Pérez
2026-08-11 17:40:36 +03:00
commit 9aed1d1d86
202 changed files with 3420 additions and 0 deletions
+26
View File
@@ -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