---
title: "Discussion on \"LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace\". Given a string, find and return the longest contiguous substring that reads the same forwards and backwards (palindrome)."
url: "https://hashnode.com/posts/longest-palindromic-substring-visualization/69d7d241cbde7a930d4aaed0"
---

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

Discussion

# [LeetCode 5: Longest Palindromic Substring — Step-by-Step Visual Trace](https://blog.tracelit.dev/longest-palindromic-substring-visualization?utm_source=hashnode&utm_medium=feed)

Given a string, find and return the longest contiguous substring that reads the same forwards and backwards (palindrome).

Apr 9 · 1 min read · blog.tracelit.dev  
Read the article

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

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
