119 Answers
New AnswerA palindrome is a word that reads the same backward or forward. For example, isPalindrome("Deleveled") should return true as character case should be ignored, resulting in"deleveled", which is a palindrome since it reads the same backward and forward. write your own program to check if a word is palindrome and return true otherwise return false. https://code.sololearn.com/cGMvKT0RoMVf/?ref=app
11/10/2017 12:04:31 AM
Said BAHAOUARY119 Answers
New AnswerThis code can even check for MORE THAN ONE PALINDROME WORDS All you need to do is enter all the palindrome words separated by "," . https://code.sololearn.com/cHDaBl0ZxNkg/?ref=app
Today I started to learn AngularJS ... and here's my first code in it... π https://code.sololearn.com/WYd5Bgyl31K4/?ref=app
@Pegasus I was running into a bug without it and wrapped the string around it as the workaround. I have since found and fixed the bug.
Python string=input("Enter string:").lower() print(("Not a Palindrome", "Palindrome")[string==string[::-1]])
1) Standard s = prompt('').toLowerCase() alert(s === s.split('').reverse().join('')) 2) Without "reverse()" var s = prompt('').toLowerCase(), s_r = "" for(i = s.length - 1; i >= 0; i--) s_r += s[i] alert(s == s_r) 3) Prototype implementation https://code.sololearn.com/W3JbmpgnvbKl/?ref=app 4) Recursion https://code.sololearn.com/WFz0Uzk3lc5k/?ref=app
Here's My Implementation In Java https://code.sololearn.com/cveZTD9icp1s/?ref=app
There are other ways in Python too: One more by me using recursion: https://code.sololearn.com/cfV98sCJuKOY/?ref=app
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message