Imran Mohsingenxclub.hashnode.dev·Jul 23, 2024How to Check Palindromes in JavaScript: A Simple yet Effective FunctionAre you interested in learning about palindromes? Perhaps you're working on a project that requires you to check if a given string is a palindrome. In this blog post, we'll explore how to create a simple JavaScript function to do just that. What are ...Discuss·10 likesjavascript palindrome check
Diwakar Kumardksah.hashnode.dev·Jul 5, 2024Palindrome Program using GolangIntroduction A word or group of words that is the same when you read it forwards from the beginning or backwards from the end. for e.g. Refer, Level, and etc. In this article I will you how to check palindrome number and string. Write checkStringPali...DiscussGo Language
Gulshan Kumarperfinsights.hashnode.dev·Jun 9, 2024Longest PalindromeGiven a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters. Letters are case sensitive, for example, "Aa" is not considered a palindrome. class Solution { pu...DiscussJava Solutionarray
Tapan Rachchhtapanrachchh.hashnode.dev·Jun 4, 2024409. Longest Palindromeclass Solution: def longestPalindrome(self, s: str) -> int: d = defaultdict(int) x = set() ans = 0 for e in s: d[e] += 1 v = d[e] if v == 2: ans += 2 ...DiscussPython
Gulshan Kumarperfinsights.hashnode.dev·May 26, 2024Palindrome PartitioningGiven a string s, partition s such that every substringof the partition is a palindrome. Return all possible palindrome partitioning of s. LeetCode Problem - 131 class Solution { // Method to partition the input string into all possible palindrom...DiscussJava SolutionJava
Tapan Rachchhtapanrachchh.hashnode.dev·May 22, 2024131. Palindrome Partitioningclass Solution: def partition(self, s: str) -> List[List[str]]: def checkPalindrome(word): return word == word[::-1] ans = [] def backtrack(index, prev, temp): nonlocal ans if index >= ...DiscussPython
Gulshan Kumarperfinsights.hashnode.dev·May 11, 2024Find Palindrome With Fixed LengthGiven an integer array queries and a positive integer intLength, return an array answer where answer[i] is either the queries[i]<sup>th</sup> smallest positive palindrome of length intLength or -1 if no such palindrome exists. A palindrome is a numbe...DiscussJava Solution#Palindrome
Bablu Roybabluroy.hashnode.dev·Apr 26, 2024Mastering Essential Algorithms with JavaScriptIn the realm of programming, algorithms serve as the backbone of problem-solving methodologies, offering structured steps to tackle computational tasks efficiently. It's important to form efficient algorithms that optimize problem-solving processes. ...DiscussJavaScript
Srisrip.hashnode.dev·Apr 26, 2024Beyond Basics: Mastering Arrays - Resizing, Missing Numbers, and PalindromesIn this article, we'll dive deeper into arrays, covering: Resizing Arrays: Learn how to dynamically resize arrays to accommodate changing data. Problem 1: Finding the Missing Number: Given an array of distinct numbers from 1 to n-1, find the missin...Discussresize array
Gagan G Saralayagagang.hashnode.dev·Mar 4, 2024C program to cheak if a number is a palandrome or not.Here is a program to cheak if a number is a palandrome or not. A word, sentence, verse, or even number that reads the same backward or forward. #include<stdio.h> int palandrome(int n); int main(){ int n; printf("Enter the number you want to f...Discuss7daystreak