Skip to content

simonmittag/palindrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Why

Appscore Golang Coding Test

What

Palindrome Two

Have the function PalindromeTwo(str) take the str parameter being passed and return the string true if the parameter is a palindrome, (the string is the same forward as it is backward) otherwise return the string false. The parameter entered may have punctuation and symbols but they should not affect whether the string is in fact a palindrome. For example: "Anne, I vote more cars race Rome-to-Vienna" should return true.

Examples

Input: "Noel - sees Leon"
Output: true
Input: "A war at Tarawa!"
Output: true

How

Checkout and Install

git clone https://github.com/simonmittag/palindrome.git && cd palindrome

Run main program

go run palindrome.go

Unit tests

go test

About

code test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages