

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Two recursive functions in python: one named 'printarray' that takes an array and its size as arguments and prints the array without returning any value, and another named 'recursiveminimum' that takes an integer array and its size as arguments and returns the smallest element in the array. Both functions use recursion and stop processing when they receive arrays of size zero.
Typology: Lecture notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Question 1 Print an array
Write a recurisive function printArray that takes an array and the size of the array as arguments and return nothing. The function should stop processing and return when is receives an array of size zero.
Question 2 Find the minimum value in an array
Write a recurisive function recursiveMinimum that takes an integer array and the array size as arguments and return the smallest element of the array. The function should stop processing and return when it receives an array of 1 element.