#c22505. 最长回文子串2
最长回文子串2
Longest Palindromic Subarray
Problem Description
Given an array of length , find the length of the longest palindromic contiguous subarray.
A subarray is palindromic if reading it forward is the same as reading it backward, i.e. , , .
Input Format
The first line contains an integer , the number of elements.
The next line contains integers .
Output Format
One integer, the answer.
Sample Input
6
1 2 3 3 2 4
Sample Output
4
Constraints
For of the data: , .