Skip to content

Commit d8e43bd

Browse files
rename
1 parent 86aeb62 commit d8e43bd

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ Your ideas/fixes/algorithms are more than welcome!
361361
|237|[Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_237.java)| O(1)|O(1) | Easy| LinkedList
362362
|236|[Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_236.java)| O(n)|O(h) | Medium| DFS
363363
|235|[Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_235.java)| O(h)|O(1) | Easy| DFS
364+
|234|[Palindrome Linked List](https://leetcode.com/problems/palindrome-linked-list/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_234.java)| O(n)|O(1) | Easy|
364365
|233|[Number of Digit One](https://leetcode.com/problems/number-of-digit-one/)|[Solution](../master/src/main/java/com/fishercoder/solutions/NumberofDigitOne.java)| O(n)|O(1) | Hard| Math
365366
|232|[Implement Queue using Stacks](https://leetcode.com/problems/implement-queue-using-stacks/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_232.java)| O(n)|O(n) | Medium| Stack, Design
366367
|231|[Power of Two](https://leetcode.com/problems/power-of-two/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_231.java)| O(1)|O(1) | Easy|

src/main/java/com/fishercoder/solutions/LongestWordinDictionarythroughDeleting.java

-32
This file was deleted.

src/main/java/com/fishercoder/solutions/PalindromeLinkedList.java renamed to src/main/java/com/fishercoder/solutions/_234.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
Follow up:
1111
Could you do it in O(n) time and O(1) space?*/
12-
public class PalindromeLinkedList {
12+
public class _234 {
1313
//then I turned to Discuss, and found that they actually reverse the half and then do the comparison, e.g. https://discuss.leetcode.com/topic/33376/java-easy-to-understand
1414
//a strong candidate would try to restore the reversed half before return to keep the input intact
1515
//practice does make perfect! Cheers! I implemented this code in 20 mins this time! Cheers!
@@ -77,7 +77,7 @@ public boolean isPalindrome(ListNode head) {
7777
}
7878

7979
public static void main(String...strings){
80-
PalindromeLinkedList test = new PalindromeLinkedList();
80+
_234 test = new _234();
8181
// ListNode head = new ListNode(1);
8282
// head.next = new ListNode(2);
8383
// head.next.next = new ListNode(3);

0 commit comments

Comments
 (0)