Skip to content

Commit 9efbc5a

Browse files
edit 9
1 parent 030778e commit 9efbc5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Your ideas/fixes/algorithms are more than welcome!
512512
|12|[Integer to Roman](https://leetcode.com/problems/integer-to-roman/)|[Solution](../master/src/main/java/com/fishercoder/solutions/IntegertoRoman.java)|O(1)|O(1)|Medium|
513513
|11|[Container With Most Water](https://leetcode.com/problems/container-with-most-water/)|[Solution](../master/src/main/java/com/fishercoder/solutions/ContainerWithMostWater.java)|O(n)|O(1)|Medium|
514514
|10|[Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/)|[Solution](../master/src/main/java/com/fishercoder/solutions/RegularExpressionMatching.java)|O(m*n)|O(m*n)|Hard|DP
515-
|9|[Palindrome Number](https://leetcode.com/problems/palindrome-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/PalindromeNumber.java)| O(logn)/(n) | O(1) | Easy
515+
|9|[Palindrome Number](https://leetcode.com/problems/palindrome-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_9.java)| O(logn)/(n) | O(1) | Easy
516516
|8|[String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_8.java)| O(n) | O(1) | Medium
517517
|7|[Reverse Integer](https://leetcode.com/problems/reverse-integer/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_7.java) | O(1) | O(1) | Easy |
518518
|6|[ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_6.java) | O(n) | O(n) | Easy |

src/main/java/com/fishercoder/solutions/PalindromeNumber.java renamed to src/main/java/com/fishercoder/solutions/_9.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
You could also try reversing an integer. However, if you have solved the problem "Reverse Integer", you know that the reversed integer might overflow. How would you handle such case?
1111
1212
There is a more generic way of solving this problem.*/
13-
public class PalindromeNumber {
13+
public class _9 {
1414

1515
/**Purely my original solution: just reverse the entire number and compare with itself, return if they two are equal or not.*/
1616
public boolean isPalindrome(int x) {

0 commit comments

Comments
 (0)