wes d2a2ba9e15 first commit преди 4 години
..
README.md d2a2ba9e15 first commit преди 4 години
code.cpp d2a2ba9e15 first commit преди 4 години
unitTest.cpp d2a2ba9e15 first commit преди 4 години

README.md

Palindrome?

by Helen Yu tags: strings, validation, loops

Summary

A palindrome is a word that is identical forward and backwards. mom racecar kayak Given a word, create a function that checks whether it is a palindrome. Examples checkPalindrome("mom") ➞ true checkPalindrome("scary") ➞ false checkPalindrome("reviver") ➞ true checkPalindrome("stressed") ➞ false Notes All test input is lower cased.

Instructions

A palindrome is a word that is identical forward and backwards.

  • mom
  • racecar
  • kayak

Given a word, create a function that checks whether it is a palindrome.

Examples

checkPalindrome("mom") ➞ true

checkPalindrome("scary") ➞ false

checkPalindrome("reviver") ➞ true

checkPalindrome("stressed") ➞ false

Notes

All test input is lower cased.