Skip to main content

Questions tagged [palindrome]

Any sequence of units (typically letters or numbers) that are read the same way forward or backward.

5 votes
3 answers
149 views

I have written a method, which checks for Palindrome and attached it to the String-class. Here's the code: ...
michael.zech's user avatar
  • 5,196
7 votes
3 answers
240 views

Having been going over the documentation, learning more of the subtleties of Java. I am now going over some basic Project-Euler solution code I wrote a little while back. Hoping I can pick up some ...
tijko's user avatar
  • 782
13 votes
10 answers
8k views

A question I've been asked on interactive phone screens is to code a test to determine whether a string is a palindrome or not. I am providing two examples here: one in C and one in C++. They both ...
pacmaninbw's user avatar
  • 26.3k
8 votes
5 answers
3k views

I've been studying Java for some days and I'm just now starting to make some simple programs, I'd like to know if there's any 'noob' mistakes or habits that I could avoid. In other words: how could ...
Tlomoloko's user avatar
  • 635
5 votes
1 answer
331 views

Problem Statement Given a string s , return the longest palindromic substring in s. Constraints ...
Rohit Singh's user avatar
5 votes
7 answers
3k views

I'm a newbie programmer and was given a task to find if the input word is a palindrome or not. Now, I've written the program to the best of my ability but would like to know how it could be improved. ...
Manya Garg's user avatar
3 votes
2 answers
602 views

I'm trying to solve the below question: A string of characters X (all in lowercase) of length n is present. We can ask a query <...
driver's user avatar
  • 222
3 votes
2 answers
103 views

A standard beginner problem is to determine whether a particular input is palindromic, i.e. reads the same in reverse as it does forwards. I thought it might be fun to provide a distinctly non-...
Toby Speight's user avatar
  • 89.6k
10 votes
4 answers
2k views

(See the next iteration/follow-up here.) I have this short function is_permutation_palindrome, which returns true only if the ...
coderodde's user avatar
  • 33.1k
2 votes
3 answers
599 views

I'm trying to solve this which basically calls for a recursive palindrome check with some minor extra steps (Special characters and whitespace can be ignored). The test inputs' length can be 100000 ...
Yamin Siahmargooei's user avatar
26 votes
6 answers
7k views

I am attempting to reinvent the wheel by writing my own palindrome checking program in C++, using only basic loops and mathematical operations. I have arrived at a solution, but was wondering if it's ...
Angular4 Kiddie's user avatar
7 votes
5 answers
1k views

This post is the follow-up of Checking whether a string is a permutation of a palindrome in C++20. So, what's new? Well, nothing else except that the procedure is now generic and accepts all ...
coderodde's user avatar
  • 33.1k
4 votes
1 answer
157 views

Task is simply to write the classic isPalindrom-function. Here's my implementation: ...
michael.zech's user avatar
  • 5,196
21 votes
10 answers
5k views

The function tests whether or not the provided string is a palindrome, and the main function just times how quick it is (after all, C's supposed to be quick, right?)...
Sam McCreery's user avatar
15 votes
5 answers
6k views

I recently did a little task for fun that required me to create a class to determine if a word is a palindrome or not. I know this is quite simple, but I'd be interested to know if a real developer (I'...
Matadeleo's user avatar
  • 263

15 30 50 per page
1
2 3 4 5
18