---
title: "Discussion on \"Palindrome Linked List in JavaScript (Optimal Approach)\" | Hashnode"
description: "Discussion on \"Palindrome Linked List in JavaScript (Optimal Approach)\". 🧠 Brute Force Approach (Not Optimal)\nA simple way is:\n\nConvert linked list into an array\n\nCheck if array is palindrome\n\n\nBut this uses extra memory:\n\nTime: O(n)\n\nSpace: O(n) ❌\n\n\n🧠Optimal Approach\n1. Find the Middle of the Linked List\nWe use two poi..."
url: "https://hashnode.com/posts/palindrome-linked-list-in-javascript-optimal-approach/6985fe9863b3ddc5257390dc"
---

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

Discussion

# [Palindrome Linked List in JavaScript (Optimal Approach)](https://skshoyebjavascript.hashnode.dev/palindrome-linked-list-in-javascript-optimal-approach?utm_source=hashnode&utm_medium=feed)

🧠 Brute Force Approach (Not Optimal) A simple way is: Convert linked list into an array Check if array is palindrome But this uses extra memory: Time: O(n) Space: O(n) ❌ 🧠Optimal Approach 1. Find the Middle of the Linked List We use two poi...

Feb 6 · 2 min read · skshoyebjavascript.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#dsainjavascript](https://hashnode.com/tag/dsainjavascript)
-   [#linkedlists](https://hashnode.com/tag/linkedlists)

## Written by

[Sk Shoyeb](https://hashnode.com/@skshoyebjs)

@skshoyebjs · India

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

Lets Explore The Javascript World With Sk Shoyeb

Ex Full Stack Developer at @WiseBoxs | Vue React Node | MERN

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
