Skip to content

Palindrome Linked List

Palindrome Linked List (Leetcode 234)

We can use the two-pointer to find the middle of the linked list. Then, we reverse the second half of the linked list and compare it with the first half.

```python