palindrome_linked_list

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 1 Imported by: 0

README

< Previous                  Next >

234. Palindrome Linked List (Easy)

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?

[Linked List] [Two Pointers]

Similar Questions

  1. Palindrome Number (Easy)
  2. Valid Palindrome (Easy)
  3. Reverse Linked List (Easy)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL