https://github.com/mxssl/leetcodepalindromenumbergolang
https://github.com/mxssl/leetcodepalindromenumbergolang
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mxssl/leetcodepalindromenumbergolang
- Owner: mxssl
- Created: 2018-09-03T20:48:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T20:50:11.000Z (almost 8 years ago)
- Last Synced: 2025-03-16T06:45:13.840Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
`Time complexity : O(log{10}(n))`
`Space complexity : O(1)`
```Bash
$ go test -v -cover ./...
=== RUN TestCase1
Expected: true, Output: true
--- PASS: TestCase1 (0.00s)
=== RUN TestCase2
Expected: false, Output: false
--- PASS: TestCase2 (0.00s)
PASS
coverage: 72.7% of statements
ok github.com/mxssl/LeetCodePalindromeNumberGolang 0.175s coverage: 72.7% of statements
```