234. Palindrome Linked List

Description

Given a singly linked list, determine if it is a palindrome.

Constraints

Approach

Examples

Input: 1->2

Output: false

Solutions

Follow up

  • Could you do it in O(n) time and O(1) space?

Last updated

Was this helpful?