bool is_palindrome(unsigned long long int num)
{
int temp; // Will hold temporary nums as we strip off digits
int remainder;
unsigned long long int reversed=0;
temp = num;
while(temp>0)
{
remainder = temp%10;
reversed = (reversed*10)+remainder;
temp = temp/10;
}
if(reversed==num)
return true;
else
return false;
}
class Solution {
public:
int reverse(int x) {
}
};
class Solution {
public int reverse(int x) {
}
}
int reverse(int x){
}
public class Solution {
public int Reverse(int x) {
}
}
/**
* @param {number} x
* @return {number}
*/
var reverse = function(x) {
};
# @param {Integer} x
# @return {Integer}
def reverse(x)
end
class Solution {
func reverse(_ x: Int) -> Int {
}
}
class Solution {
/**
* @param Integer $x
* @return Integer
*/
function reverse($x) {
}
}
function reverse(x: number): number {
};