Check if Linked List is Palindrome Problem
Check if Linked List is Palindrome Problem — ExecCode Easy DSA Practice
Solve the Check if Linked List is Palindrome problem on ExecCode. Free online easy DSA practice in Linked List. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given the head of a singly linked list, return trueif it is apalindromeorfalseotherwise.
Examples
Input {"nums": [1, 2, 2, 1]}; Output True
Constraints
The number of nodes in the list is in the range [1, 10^5]. 0 <= Node.val <= 9
Practice Check if Linked List is Palindrome free on ExecCode. Browse DSA problems, topic map, and placement guides.