# 回文かチェック
def checkPalindrome(word)
word = word.to_s
size = word.length / 2
return ( word[0..size] == word.reverse[0..size] )
end
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme