234. Palindrome Linked List
Given a singly linked list, determine if it is a palindrome.
Example 1:
Example 2:
Follow up: Could you do it in O(n) time and O(1) space?
Last updated
Was this helpful?
Given a singly linked list, determine if it is a palindrome.
Example 1:
Example 2:
Follow up: Could you do it in O(n) time and O(1) space?
Last updated
Was this helpful?