Palindrome Linked List

Easy

📝 Description

Determine if a linked list is a palindrome

Input Format

Linked list head node

Output Format

true/false

Constraints

1 ≤ number of nodes ≤ 10^5

🔍 Sample Input

[1,2,2,1]
            

✅ Sample Output

true
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run