Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd8e43bd

Browse files
rename
1 parent86aeb62 commitd8e43bd

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎src/main/java/com/fishercoder/solutions/PalindromeLinkedList.javarenamed to‎src/main/java/com/fishercoder/solutions/_234.java

Lines changed: 2 additions & 2 deletions
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-
publicclassPalindromeLinkedList {
12+
publicclass_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
publicstaticvoidmain(String...strings){
80-
PalindromeLinkedListtest =newPalindromeLinkedList();
80+
_234test =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)

[8]ページ先頭

©2009-2025 Movatter.jp