terminal
Elevo
/
ESC
Login
Initiate Registration
code
Topics
corporate_fare
Companies
history
History
arrow_back
Back to Challenges
#234
Palindrome Linked List
Easy
Acceptance 0%
Editorial
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
Python 3
expand_more
C
C++ 17
Java
JavaScript
Python 3
C
C++ 17
Java
JavaScript
Python 3
refresh
class Solution: def isPalindrome(self, head: ListNode) -> bool: pass
Login to Compile
Processing
terminal
Debug Output
home
Home
extension
Practice
robot_2
login
Sign In
account_circle
Menu
code_blocks
Coding
psychology
Aptitude
Navigation
close
Login
Registration