234. Palindrome Linked List
Description
Given a singly linked list, determine if it is a palindrome.
Constraints
Approach
Links
GeeksforGeeks
YouTube
Examples
Input: 1->2
Output: false
Input: 1->2->2->1
Output: true
Solutions
Follow up
Could you do it in O(n) time and O(1) space?
Last updated
Was this helpful?