Solution Review: Find if the Array is a Palindrome
This lesson gives a detailed solution review of how to find if the array is a palindrome.
We'll cover the following...
We'll cover the following...
Solution: Is the array a palindrome?
Understanding the code
The recursive code can be broken down into two parts: the recursive method and the main where the method is called.
Driver Method
The driver code is between line 15 and line 29
- An
arrayis defined. - The method
palindromeis called which takes two arguments - thearray