@@ -0,0 +1,8 @@
#include "s0009_palindrome_number.hpp"
bool Solution::isPalindrome(int x) {
string s = to_string(x);
string r = s;
reverse(r.begin(), r.end());
return s == r;
}
The note is not visible to the blocked user.