- Reverse a String 1
- Reverse Each Word
- Reverse a Sentence
- Palindrome
- Find Words
- CountIng Search
- Unique Characters
-
Java Sandwich - Anagrams 1
- Anagrams 2
- Counting Search 2
Java String Resources:
Palindrome
Premium Content - Free Preview
A palindrome is a sentence that reads the same backwards and forwards, when the spaces are removed. For example, "madam im adam". Can you write a program that identifies if a sentence is a palindrome?
End of Free Content Preview. Please Sign in or Sign up to buy premium content.
Comments
thales
Jul 23, 6:23 AMa solution:
my code
Gary
Mar 4, 5:21 PMCan anyone help me with this... my code is returning false all the way down... I'm not seeing where I went wrong:
Kyle Lemon
May 29, 8:44 AMWorking Ruby boilerplate:
def palindrome?(string)
Kyle Lemon
May 29, 8:45 AMTrying this again (having trouble with formatting the code):
`def palindrome?(string)
end
t = gets.to_i
t.times do
sentence = gets.chomp
print palindrome?(sentence), "\n"
end`