Solución
solution.tsTypeScript
public class Solution {
public boolean isPalindrome(String text) {
String reverseText = reverseString(text);
return text.toLowerCase().equals(reverseText.toLowerCase());
}
public String reverseString(String text) {
String res = "";
for (int index = text.length()-1; index >= 0; index--) {
res += text.charAt(index);
}
return res;
}
}0respuestas