pull down to refresh
0 sats \ 6 replies \ @brandonsbytes OP 5 Jan \ parent \ on: Dev Challenge #2 (palindrome number) devs
deleted by author
reply
reply
reply
never lol
reply
(defun print-palindrome-function () (println "public boolean isPalindrome(int x) {") (println " String s = \"\" + x;") (println " int l = s.length();") (println " for (int i = 0; i < l; i++) {") (println " int j = l - 1 - i;") (println " if (s.charAt(i) != s.charAt(j)) return false;") (println " }") (println " return true;") (println "}")) (print-palindrome-function)