---
# System prepended metadata

title: Palindrome Linked List

---

# Palindrome Linked List
Given the head of a singly linked list, return true if it is a palindrome.

Input: head = [1,2,2,1]
Output: true

Input: head = [1,2]
Output: false


