---
title: "Discussion on \"LeetCode 5: Longest Palindromic Substring – JavaScript Solution\" | Hashnode"
description: "Discussion on \"LeetCode 5: Longest Palindromic Substring – JavaScript Solution\". Learn to find the longest palindromic substring using JavaScript with expand-around-centers technique. Includes time and space complexity analysis"
url: "https://hashnode.com/posts/leetcode-5-longest-palindromic-substring-javascript-solution/68baf993f8a8534524b83004"
---

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

Discussion

# [LeetCode 5: Longest Palindromic Substring – JavaScript Solution](https://code-with-shanks.hashnode.dev/leetcode-5-longest-palindromic-substring-javascript-solution?utm_source=hashnode&utm_medium=feed)

Learn to find the longest palindromic substring using JavaScript with expand-around-centers technique. Includes time and space complexity analysis

Sep 5, 2025 · 2 min read · code-with-shanks.hashnode.dev  
Read the article

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

## Written by

[Shanks](https://hashnode.com/@codewithshanks)

@codewithshanks · India

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

Senior Developer | DSA | Leetcode | Grind

Senior Dev trying to crack FAANG | Sharing the grind, growth, and late-night code sessions

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
