We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b5ab0 commit e74ee36Copy full SHA for e74ee36
javascript/PalindromeNumber.js
@@ -1,3 +1,7 @@
1
+// https://leetcode.com/problems/palindrome-number
2
+// T: O(log(n))
3
+// S: O(1)
4
+
5
const isPalindrome = (x) => {
6
if (x < 0 || (x % 10 === 0 && x !== 0)) {
7
return false;
0 commit comments