In this video, I will show you how to find the minimum and the maximum number or element inside an array using a for loop and then using recursion.
What is recursion? Recursion is a function that calls upon itself. Here, we write a function that calls upon itself to find the min and the max value in a list using a for loop iteratively and then using recursion. While it is easy to use a for loop or while loop to do this, it is important that you understand these recursion steps to have a strong foundation to learn more complex recursive algorithm in the future.
LIKE & SUBSCRIBE:
🔴 My Channel: / quocdatphung
🔴 My second channel: / @purifynature8479