We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ee209 commit a8bbbfdCopy full SHA for a8bbbfd
src/main/kotlin/other/Palindrome.kt
@@ -3,7 +3,17 @@ package other
3
import java.text.Normalizer
4
import java.util.regex.Pattern
5
6
-
+/**
7
+ * A palindrome is a word, number, phrase, or other sequence
8
+ * of characters which reads the same backward as forward,
9
+ * such as madam, racecar. There are also numeric palindromes,
10
+ * particularly date/time stamps using short digits 11/11/11 11:11
11
+ * and long digits 02/02/2020
12
+ *
13
+ * This function
14
+ * @param text The text to be checked if it is a palindrome
15
+ * @return return true if the text is a Palindrome
16
+ */
17
fun isPalindrome(text: String): Boolean {
18
19
val normalizedText = text.normalize()
0 commit comments