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

Commit2071395

Browse files
committed
keep updating readme
1 parentf1dd022 commit2071395

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed
File renamed without changes.

‎Easy/19-removeNthNodeFromEndofList.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
varremoveNthFromEnd=function(head,n){
1919
varfHead=head,sHead=head;
2020
vardistance=0;
21-
while(distance<n){
21+
while(distance<n){
2222
sHead=sHead.next;
2323
distance++;
2424
}
2525
if(!sHead)returnfHead.next;
26-
while(sHead.next){
26+
while(sHead.next){
2727
fHead=fHead.next;
2828
sHead=sHead.next;
2929
}

‎Easy/83-removeDuplicatesFromSortedList.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
vardeleteDuplicates=function(head){
1313
varorigHead=head;
1414
while(head!==null&&head.next!==null){
15-
if(head.next.val===head.val){
15+
if(head.next.val===head.val){
1616
varheadNextNext=head.next.next;
1717
head.next=headNextNext;
1818
}else{

‎README.md‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@
66

77
#####Easy
88
*[7. Reverse Integer](https://oj.leetcode.com/problems/reverse-integer/) -[Solution](./Easy/7-reverseInteger.js)
9-
*[8. String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) -[Solution](./Easy/8-stringToInteger.js)
10-
*[9. Palindrome Number](https://leetcode.com/problems/palindrome-number/) -[Solution](./Easy/9-palindromeNumber.js)
11-
*[14. Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/) -[Solution](./Easy/14-longestCommonPrefix.js)
12-
*[19. Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/) -[Solution](./Easy/19-removeNthNodeFromEndofList.js)
13-
*[21. Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/) -[Solution](./Easy/21-mergeSortedLists.js)
14-
*[28. Implement strStr()](https://leetcode.com/problems/implement-strstr/) -[Solution](./Easy/28-implementstrStr.js)
15-
*[38. Count and Say](https://leetcode.com/problems/count-and-say/) -[Solution](./Easy/38-countandSay.js)
9+
*[8. String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) -[Solution](./Easy/8-stringToInteger.js)
10+
*[9. Palindrome Number](https://leetcode.com/problems/palindrome-number/) -[Solution](./Easy/9-palindromeNumber.js)
11+
*[14. Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/) -[Solution](./Easy/14-longestCommonPrefix.js)
12+
*[19. Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/) -[Solution](./Easy/19-removeNthNodeFromEndofList.js)
13+
*[21. Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/) -[Solution](./Easy/21-mergeSortedLists.js)
14+
*[28. Implement strStr()](https://leetcode.com/problems/implement-strstr/) -[Solution](./Easy/28-implementstrStr.js)
15+
*[38. Count and Say](https://leetcode.com/problems/count-and-say/) -[Solution](./Easy/38-countandSay.js)
16+
*[66. Plus One](https://leetcode.com/problems/plus-one/) -[Solution](./Easy/66-plusOne.js)
17+
*[66. Add Binary](https://leetcode.com/problems/add-binary/) -[Solution](./Easy/67-addBinary.js)
18+
*[70. Climbing Stairs](https://leetcode.com/problems/climbing-stairs/) -[Solution](./Easy/70-climbChairs.js)
19+
*[83. Remove Duplicates from Sorted List](https://leetcode.com/problems/remove-duplicates-from-sorted-list/) -[Solution](./Easy/83-removeDuplicatesFromSortedList.js)
20+
*[88. Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) -[Solution](./Easy/88-mergeSortedArray.js)
21+
*[100. Same Tree](https://leetcode.com/problems/same-tree/) -[Solution](./Easy/100-sameTree.js)
22+
*[101. Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) -[Solution](./Easy/101-symmetricTree.js)
23+
*[102. Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/) -[Solution](./Easy/102-binaryTreeLevelOrder.js)
24+
*[104. Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree/) -[Solution](./Easy/104-maxDepth.js)
25+
*[169. Majority Element](https://leetcode.com/problems/majority-element/) -[Solution](./Easy/169-majorityElement.js)
1626

1727
#####Medium
18-
*[3. Longest Substring Without Repeating Characters](https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/) -[Solution](./Easy/3-lengthOfLongestSubstring.js)
19-
*[35. Search Insert Position Characters](https://oj.leetcode.com/problems/search-insert-position/) -[Solution](./Easy/35-searchInsert.js)
28+
*[3. Longest Substring Without Repeating Characters](https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/) -[Solution](./Easy/3-lengthOfLongestSubstring.js)
29+
*[35. Search Insert Position Characters](https://oj.leetcode.com/problems/search-insert-position/) -[Solution](./Easy/35-searchInsert.js)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp