Largest palindrome Assignment Answers
Your question:
Write a program to find the largest palindrome in an array.
Input format:
The first input is the size of the array.
The second input is the array of elements.
Output format:
The output displays the largest palindrome.
Sample test cases:
Input 1:
4
5 131 54545 1111118
Output 1:
54545
K
Assignment Help Answers with Step-by-Step Explanation:
def is_palindrome(s):
for item in arr:
item_str = str(item)
# Input
n = int(input("Enter the size of the array: "))
print("The largest palindrome is:", largest_palindrome)
else:


