A palindrome is a word or group of words that remains the same whether you read it forwards from the beginning or backwards from the end: "refer" and "level" are palindromes. Please return the number of words that are palindromes.
Sequences
Palindrome test
Report a typo
Sample Input 1:
ana arara casa ovo radar reviver sator solos stats tenet xanaxSample Output 1:
9Write a program in Kotlin
fun main() {
val input = readln().split(" ").asSequence()
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.