Exercise 11 & Bonus 2
Added Exercise 11 & Bonus 2 to Repo Added Signature to Exercise 10
This commit is contained in:
@@ -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 🇨🇭
|
||||
|
@@ -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 🇨🇭
|
||||
|
@@ -67,3 +67,7 @@ int largest_difference(iterator begin, iterator end) {
|
||||
return max_dif;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
--------------
|
||||
|
||||
Made by JirR02 in Switzerland 🇨🇭
|
||||
|
@@ -183,3 +183,7 @@ void Queue::print() const {
|
||||
std::cout << "]";
|
||||
}
|
||||
#+end_src
|
||||
|
||||
--------------
|
||||
|
||||
Made by JirR02 in Switzerland 🇨🇭
|
||||
|
@@ -122,3 +122,7 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
#+end_src
|
||||
|
||||
--------------
|
||||
|
||||
Made by JirR02 in Switzerland 🇨🇭
|
||||
|
Reference in New Issue
Block a user