arrow_back Back to Challenges

#234 Palindrome Linked List

Easy Acceptance 0%
description

Problem Description

Given the `head` of a singly linked list, return `true` if it is a palindrome or `false` otherwise.

checklist Constraints

The number of nodes in the list is in the range [1, 10^5].
0 <= Node.val <= 9

science Examples

Case #1

In: head = [1,2,2,1]
Out: true

Case #2

In: head = [1,2]
Out: false

Mastery Tags

Linked List Recursion Two Pointers

Hiring Companies

Amazon Google Meta
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude