+ 41

Challenge:: palindrome words

A 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

10th Nov 2017, 12:04 AM
Said BAHAOUARY
Said BAHAOUARY - avatar
114 ответов
10th Nov 2017, 3:38 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 38
https://code.sololearn.com/cfYbxZH82Zxx/?ref=app
11th Nov 2017, 8:10 AM
Igor Makarsky
Igor Makarsky - avatar
+ 28
This 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
10th Nov 2017, 12:53 PM
Mr. Bot
Mr. Bot - avatar
+ 28
https://code.sololearn.com/cW53pA4P9q3g/?ref=app
4th Mar 2018, 6:56 PM
MeanMachine
MeanMachine - avatar
+ 27
Today I started to learn AngularJS ... and here's my first code in it... 😊 https://code.sololearn.com/WYd5Bgyl31K4/?ref=app
10th Nov 2017, 4:33 PM
LukArToDo
LukArToDo - avatar
10th Nov 2017, 12:52 PM
LukArToDo
LukArToDo - avatar
10th Nov 2017, 1:55 PM
qwerty
qwerty - avatar
+ 15
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
11th Nov 2017, 6:57 PM
Maz
Maz - avatar
+ 14
@Ace It will be better if you move your code to code playground ☺ thanks
10th Nov 2017, 1:09 AM
Said BAHAOUARY
Said BAHAOUARY - avatar
10th Nov 2017, 11:06 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
10th Nov 2017, 7:45 PM
David Akhihiero
David Akhihiero - avatar
+ 13
Here's My Implementation In Java https://code.sololearn.com/cveZTD9icp1s/?ref=app
11th Nov 2017, 11:50 AM
Aayush Bhansali
Aayush Bhansali - avatar
+ 13
https://code.sololearn.com/c5RXS8uy089I/?ref=app
7th Dec 2017, 5:43 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 12
There are other ways in Python too: One more by me using recursion: https://code.sololearn.com/cfV98sCJuKOY/?ref=app
10th Nov 2017, 11:23 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 12
show us your code on playground @sayan
10th Nov 2017, 1:31 PM
Said BAHAOUARY
Said BAHAOUARY - avatar
2nd Dec 2017, 2:25 AM
Logan
Logan - avatar
+ 11
https://code.sololearn.com/cMZ20HhEp1C6/?ref=app
11th Nov 2017, 1:03 PM
Ekansh
+ 10
a=input().lower();print("Palindrome!") if a==a[::-1] else print("Not a palindrome!")
10th Nov 2017, 2:03 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 10
https://code.sololearn.com/cCMXTaTdVdr9/?ref=app My code is lil different. You enter a non palindrome word it. It actually converts it into a palindrome word. try it guys....
10th Nov 2017, 8:48 AM
Aaron Stone
Aaron Stone - avatar