Problem Valid Alphanumeric Palindrome Problem (from Leetcode) Given a string, determine if it is a palindrome, considering only alphanumeric characters […]
Tag: palindrome
Check if string is palindrome LeetCode
Problem LeetCode 125 requires receiving a string and checking if it is a valid palindrome. I have done this and […]
Find a palindromic string in C
Problem This program tests whether a string is a palindrome or not. Can there be any improvements or shortcuts that […]
Longest palindrome in a given string using LINQ
Problem Problem:I need to write an algorithm that will return length of longest possible palindrome from a given string. So […]
Recursive Palindrome in JavaScript
Problem Would someone review this code, and confirm that it is indeed recursive? I’m learning computer science and going through […]
Find the inverted value of the string
Problem How can this be optimized? $text = “reverseesrever”; // Reverse and esrever $b = false; for($i = 0; $i […]
Find a palindrome using Ruby
Problem I am preparing for an upcoming exam and have the following practice question.. Write a method to determine if […]
Finding palindromes and the longest word in a string
Problem I have two little projects that I’ve been working on. One is to find all palindromes: function palindrome(str) { […]
C++ check if Palindrome
Problem Just did this simple application to check whether a string is a palindrome or not #include <iostream> #include <string> […]
Palindrome Validator
Problem This code returns true if the sentence is a palindrome, and false otherwise. Is there a better way of […]