S
All challenges
Practice
Home
Blog
Practice
Examples
Feedback
Palindrome Linked List
00:00
Start
00:00
Sign in
Problem
Hints
3
Solution
History
Easy
Linked List
Two Pointers
Fast & Slow
Amazon
Determine if a linked list is a palindrome in O(n) time O(1) space.
Examples
Example 1
Input →
1
Output →
2→2→1 → True
Example 2
Input →
1
Output →
2 → False
Example 3
Input →
1
Output →
2→3→2→1 → True
JavaScript
Python
Java (Coming soon)
C (Coming soon)
C++ (Coming soon)
Reset
Run
Submit
Cases
Results