About 218,000 results
Open links in new tab
  1. JavaScript Program to Count Palindromic Substrings

    Jul 23, 2025 · To count palindrome substrings in a string in JavaScript we can use various methods, we will see two approaches to counting palindromic substrings in JavaScript dynamic programming and …

  2. javascript - Finding Longest Palindromic Substring - Stack Overflow

    Sep 2, 2023 · Manacher's algorithm is designed specifically for finding the longest palindromic substring and has a time complexity of O (n), where n is the length of the input string.

  3. Palindrome Substrings in JavaScript | AlgoCademy

    Given a string, count the number of palindromic contiguous substrings in the string. The substrings with different start indexes or end indexes are counted as different substrings even they consist of same …

  4. JavaScript: The longest palindrome in a specified string

    Feb 28, 2025 · JavaScript exercises, practice and solution: Write a JavaScript function that the longest palindrome in a specified string.

  5. How can I find the longest palindromic substring in a JavaScript string ...

    Jun 23, 2025 · While a brute-force longest palindrome finder is simple, it is not efficient. Let's explore a more efficient solution.

  6. Palindromic Substrings - JavaScript Coding Challenge | Intervue

    Given a string, write a function to return the count of all possible palindromic substrings. A palindromic substring is a substring that reads the same backward as forward.

  7. Palindrome Substrings Count - GeeksforGeeks

    Aug 29, 2025 · Given a string s, find the total number of palindromic substrings of length greater than or equal to 2 present in the string. A substring is palindromic if it reads the same forwards and backwards.

  8. Discovering the Longest Palindromic Substring in JavaScript

    Apr 26, 2024 · In this guide, I will show you how to efficiently find the longest palindromic substring within a given string. The longest palindromic substring problem requires us to find the...

  9. Longest Palindromic Substring in Javascript - Stack Overflow

    Aug 10, 2020 · I'm trying to solve the Longest Palindromic Substring problem in O (N^2) time complexity. Problem: Given a string s, find the longest palindromic substring in s.

  10. Longest Palindromic Substring - JavaScript in Plain English

    Dec 17, 2024 · By understanding and utilizing these patterns (expand-around-center, two-pointer, DP), you not only solve this problem efficiently but also build a toolkit for approaching a wide range of …