Exercise 11 & Bonus 2

Added Exercise 11 & Bonus 2 to Repo
Added Signature to Exercise 10
This commit is contained in:
2025-05-19 11:34:47 +02:00
parent 49265f1b23
commit fec3fd845f
20 changed files with 640 additions and 19 deletions

View File

@@ -44,3 +44,7 @@ For example, for the input given above, this value is 8.
// POST: Returns the address of the i-th element of vec.
const int *lookup(const std::vector<int> &vec, const int i) { return &vec[i]; }
#+end_src
--------------
Made by JirR02 in Switzerland 🇨🇭

View File

@@ -43,3 +43,7 @@ For example, for the input given above this value is 56.
// location a and the integer at location b.
void add(int *res, const int *a, const int *b) { *res = *a + *b; }
#+end_src
--------------
Made by JirR02 in Switzerland 🇨🇭

View File

@@ -67,3 +67,7 @@ int largest_difference(iterator begin, iterator end) {
return max_dif;
}
#+end_src
--------------
Made by JirR02 in Switzerland 🇨🇭

View File

@@ -183,3 +183,7 @@ void Queue::print() const {
std::cout << "]";
}
#+end_src
--------------
Made by JirR02 in Switzerland 🇨🇭

View File

@@ -122,3 +122,7 @@ int main() {
return 0;
}
#+end_src
--------------
Made by JirR02 in Switzerland 🇨🇭