Problem
Ask
Submissions

Problem: Palindrome Linked List

Medium
30 min
Understand how to identify whether a linked list is a palindrome by applying fast and slow pointer techniques. This lesson guides you through preserving the original list structure and assessing the problem step-by-step to implement an efficient solution.

Statement

Given the head of a linked list, your task is to check whether the linked list is a palindrome or not. Return TRUE if the linked list is a palindrome; otherwise, return FALSE.

Note: The original structure of the linked list must remain unchanged before and after the checking process.

Constraints:

Let n be the number of nodes in a linked list.

  • 11\leq n 500\leq500

  • 00 \leq Node.value 9\leq 9.

Problem
Ask
Submissions

Problem: Palindrome Linked List

Medium
30 min
Understand how to identify whether a linked list is a palindrome by applying fast and slow pointer techniques. This lesson guides you through preserving the original list structure and assessing the problem step-by-step to implement an efficient solution.

Statement

Given the head of a linked list, your task is to check whether the linked list is a palindrome or not. Return TRUE if the linked list is a palindrome; otherwise, return FALSE.

Note: The original structure of the linked list must remain unchanged before and after the checking process.

Constraints:

Let n be the number of nodes in a linked list.

  • 11\leq n 500\leq500

  • 00 \leq Node.value 9\leq 9.