You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Charles Honton (JIRA)" <ji...@apache.org> on 2017/06/21 22:23:00 UTC

[jira] [Closed] (TEXT-77) Add code to check if a given string is a palindrome

     [ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Honton closed TEXT-77.
------------------------------
    Resolution: Won't Do

This is a great academic / interview question with little practical use.

What is the scope of requirements?  What is the expected big O performance? Which of the following palindromes will it detect?

Madam, I'm Adam
Able was I ere I saw Elba
A man, a plan, a canal - Panama!
かるいきびんなこねこなんびきいるか
上海自来水来自海上
Dábale arroz a la zorra el abad.
Adán no cede con nada.


> Add code to check if a given string is a palindrome
> ---------------------------------------------------
>
>                 Key: TEXT-77
>                 URL: https://issues.apache.org/jira/browse/TEXT-77
>             Project: Commons Text
>          Issue Type: New Feature
>            Reporter: Bruno P. Kinoshita
>            Priority: Minor
>              Labels: easy, help-wanted, text
>             Fix For: 1.x
>
>
> I had a look at [lang|https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html] and [text|https://commons.apache.org/proper/commons-text/javadocs/api-release/index.html] API's, but could not locate a class/method for [palindromes|https://en.wikipedia.org/wiki/Palindrome].
> Ideally, it would support words or sentences such as "racecar" and "step on no pets".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)