Skip to content

Files

Latest commit

e1abef0 · Mar 17, 2020

History

History
57 lines (23 loc) · 627 Bytes

File metadata and controls

57 lines (23 loc) · 627 Bytes

Description

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

Example 1:

Input: 1->2

Output: false

Example 2:

Input: 1->2->2->1

Output: true

Follow up:

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

Solutions

Python3

Java

...