Skip to content

jfolk2015/palindrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palindrome Example

A code exercise to find the smallest palindrome for any arbitrary string.

Some assumptions:

  1. Handle word palindromes, not sentence palindromes (punctuation and spaces are not ignored when determining internal symmetry).
  2. Be sensitive to case, so "Eve" is not considered a palindrome because the e's differ in case.

Behavior:

  1. If the provided string is null, function will return null.
  2. If the provided string is already a palindrome, function will return that string.
  3. Otherwise, the shortest palindrome of the string will be determined and return.

To build the project, clone the repository and run ./gradlew build.

I built this in Java 11 since that is the current long term stable java version.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages