Back to DSA
Palindrome Linked List
easyDetermine whether a singly linked list forms a palindrome — that is, the sequence of values reads the same from front to back as from back to front. Return true if it does, false otherwise.
Examples
Example 1:
Input:
head = [3,7,7,3]Output:
true Example 2:
Input:
head = [1,5]Output:
falseHints
1234567