Initial Course
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#include "c_arrays.hpp"
|
||||
|
||||
namespace arrays {
|
||||
|
||||
auto array_sum(const int* data, std::size_t size) -> int { (void)data; (void)size; return 0; }
|
||||
auto array_max(const int* data, std::size_t size) -> int { (void)data; (void)size; return 0; }
|
||||
void reverse_array(int* data, std::size_t size) { (void)data; (void)size; }
|
||||
|
||||
} // namespace arrays
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "multidimensional.hpp"
|
||||
|
||||
namespace arrays {
|
||||
|
||||
auto create_matrix(int rows, int cols, int fill) -> Matrix { (void)rows; (void)cols; (void)fill; return {}; }
|
||||
auto transpose(const Matrix& matrix) -> Matrix { (void)matrix; return {}; }
|
||||
auto row_sums(const Matrix& matrix) -> std::vector<int> { (void)matrix; return {}; }
|
||||
|
||||
} // namespace arrays
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "std_string.hpp"
|
||||
|
||||
namespace arrays {
|
||||
|
||||
auto to_uppercase(std::string text) -> std::string { (void)text; return {}; }
|
||||
auto trim(const std::string& text) -> std::string { (void)text; return {}; }
|
||||
auto replace_all(std::string text, char from, char to) -> std::string { (void)text; (void)from; (void)to; return {}; }
|
||||
auto starts_with(const std::string& text, const std::string& prefix) -> bool { (void)text; (void)prefix; return false; }
|
||||
|
||||
} // namespace arrays
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "std_vector.hpp"
|
||||
|
||||
namespace arrays {
|
||||
|
||||
auto vector_sum(const std::vector<int>& data) -> int { (void)data; return 0; }
|
||||
void remove_value(std::vector<int>& data, int value) { (void)data; (void)value; }
|
||||
auto unique_sorted(std::vector<int> data) -> std::vector<int> { (void)data; return {}; }
|
||||
auto chunk(const std::vector<int>& data, std::size_t size) -> std::vector<std::vector<int>> { (void)data; (void)size; return {}; }
|
||||
|
||||
} // namespace arrays
|
||||
Reference in New Issue
Block a user