id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu > isPalindrome
prev  |  next  |  chance

An integer is a palindrome if the digits read the same forward and backward. For example, 34843 and 99 and 1001 are palindromes, but 45656 and 2727 are not. Return true if the given positive integer is a palindrome, and false otherwise. The integer will not end in 0. Consider solving the reverseNumber problem before trying to solve this problem.


isPalindrome(34843) → true
isPalindrome(99) → true
isPalindrome(1001) → true

...Save, Compile, Run (ctrl-enter)

boolean isPalindrome(int n) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy