Skip to content

Commit e74ee36

Browse files
authored
Update PalindromeNumber.js
- Added link to the problem - Added T.C. as well as S.C.
1 parent f1b5ab0 commit e74ee36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javascript/PalindromeNumber.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// https://leetcode.com/problems/palindrome-number
2+
// T: O(log(n))
3+
// S: O(1)
4+
15
const isPalindrome = (x) => {
26
if (x < 0 || (x % 10 === 0 && x !== 0)) {
37
return false;

0 commit comments

Comments
 (0)