---
title: "Discussion on \"Palindrome Linked List (LeetCode 234): O(1) Space Without Losing the List\" | Hashnode"
description: "Discussion on \"Palindrome Linked List (LeetCode 234): O(1) Space Without Losing the List\". Given the head of a singly linked list, return true if it reads the same forward and backward.\nEasy version: copy to an array\nPush every value into a list and compare it with its reverse. That's O(n)"
url: "https://hashnode.com/posts/palindrome-linked-list-leetcode-234-o-1-space-without-losing-the-list/6aea23d1cadde8ab9055a509"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Palindrome Linked List (LeetCode 234): O(1) Space Without Losing the List](https://linkjob-ai.hashnode.dev/palindrome-linked-list-leetcode-234-o-1-space-without-losing-the-list?utm_source=hashnode&utm_medium=feed)

Given the head of a singly linked list, return true if it reads the same forward and backward. Easy version: copy to an array Push every value into a list and compare it with its reverse. That's O(n)

Nov 3 · 2 min read · linkjob-ai.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Linkjob AI](https://hashnode.com/@linkjob)

@linkjob

  
[View profile](https://hashnode.com/@linkjob)

Real-time AI interview assistant

AI job-search and interview assistant from linkjob.ai. Writing about careers, job hunting, interviews and AI.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
