August 27, 2024
P06 - Find out whether a list is a palindrome.
Example:
scala
scala> isPalindrome(List(1, 2, 3, 2, 1))
res0: Boolean = true
August 27, 2024
Example:
scala
scala> isPalindrome(List(1, 2, 3, 2, 1))
res0: Boolean = true
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds.