Palindrome Linkedlist
easy
Given a singly linked list of Integers, determine it is a palindrome or not.
Constraints
0 <= N <= 10^6
Format
Input
1->2->3->4->3->2->1->null 1->2->3->4->2->1->null
Output
true false
Example
Sample Input
10
5
1
4
6
9
9
6
4
1
5
Sample Output
true
Question Video