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 complete the function definition to return true if a text is a palindrome.
Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming usage
hashCode and equals
Palindrome test
Report a typo
Sample Input 1:
xanaxSample Output 1:
trueWrite a program in Kotlin
// complete the function
fun isPalindrome(text: String): Boolean {
}
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.