### Example: Find the maximum value in a list (iterative)
### Example: Find the maximum value in a list (iterative)
Write a function `find_maximum_iterative` that takes a list of numbers as input and returns the maximum value in the list. For this question, you are not allowed to use built-in functions like `max()`.
Write a function `find_maximum_iterative` that takes a list of numbers as input and returns the maximum value in the list. For this question, you are not allowed to use built-in functions like `max()`.
### Exercise 1: Find the maximum value in a list (recursive)
### Exercise 1: Find the maximum value in a list (recursive)
Write a recursive version to find the max value in a list of integers. You may use the `max()` function for the recursive call but not as a unique solution. Compare with the iterative version from the example.
Write a recursive version to find the max value in a list of integers. You may use the `max()` function for the recursive call but not as a unique solution. Compare with the iterative version from the example.
Write a recursive function that calculates the sum of the digits so that given a positive integer (e.g. `123` of type `int`), it return the number of digits it contains (e.g. for `123` the solution is `3`, or for `56` the solution is `2`). Compare with the iterative function from the previous lab.
Write a recursive function that calculates the sum of the digits so that given a positive integer (e.g. `123` of type `int`), it return the number of digits it contains (e.g. for `123` the solution is `3`, or for `56` the solution is `2`). Compare with the iterative function from the previous lab.
Write a function that takes a string as input and returns `True` if the word is a palindrome (i.e., it reads the same forwards and backwards), and `False` otherwise.
Write a function that takes a string as input and returns `True` if the word is a palindrome (i.e., it reads the same forwards and backwards), and `False` otherwise.
Given two positive integers, write a recursive function to calculate their Greatest Common Divisor (GCD). The GCD of two integers is the largest integer that divides both numbers without leaving a remainder. Compare with the following iterative function:
Given two positive integers, write a recursive function to calculate their Greatest Common Divisor (GCD). The GCD of two integers is the largest integer that divides both numbers without leaving a remainder. Compare with the following iterative function:
Write a recursive function that takes a list of numbers as input and returns `True` if the list is sorted in non-decreasing order and `False` otherwise.
Write a recursive function that takes a list of numbers as input and returns `True` if the list is sorted in non-decreasing order and `False` otherwise.
Write a recursive function that checks if a given integer is a prime number. A prime number is a natural number greater than 1 that has no divisors other than 1 and itself.
Write a recursive function that checks if a given integer is a prime number. A prime number is a natural number greater than 1 that has no divisors other than 1 and itself.