Palindrome Linked List Problem
Palindrome Linked List Problem — ExecCode Easy DSA Practice
Solve the Palindrome Linked List problem on ExecCode. Free online easy DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Given the head of a singly linked list, return true if it is a palindrome. For Palindrome Linked List, focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.
Examples
Input head = [1, 2, 2, 1]; Output true
Constraints
1 ≤ n ≤ 10^5 0 ≤ Node.val ≤ 9
Practice Palindrome Linked List free on ExecCode. Browse DSA problems, topic map, and placement guides.