Skip to content

Commit 24d87a9

Browse files
committed
docs(img): change img path
1 parent cdc96ca commit 24d87a9

File tree

15 files changed

+15
-79
lines changed

15 files changed

+15
-79
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://github.com/doocs/leetcode"><img src="http://p9ucdlghd.bkt.clouddn.com/leetcode-github-yanglbme.png" alt="LeetCode-GitHub-yanglbme"></a>
2+
<a href="https://github.com/doocs/leetcode"><img src="/img/leetcode-github-yanglbme.png" alt="LeetCode-GitHub-yanglbme"></a>
33
</p>
44

55
<p align="center">

img/histogram.png

677 Bytes
Loading

img/histogram_area.png

1.51 KB
Loading

img/leetcode-github-yanglbme.png

1.01 MB
Loading

img/robot_maze.png

9.46 KB
Loading

solution/0002.Add Two Numbers/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
### 解法
1616
同时遍历两个链表,对应值相加(还有 quotient)求余数得到值并赋给新创建的结点。而商则用quotient存储,供下次相加。
1717

18+
#### Java
19+
1820
初始版本:
1921

2022
```java
@@ -99,6 +101,7 @@ class Solution {
99101
}
100102
}
101103
```
104+
102105
#### CPP
103106
```CPP
104107
class Solution {

solution/0003.Longest Substring Without Repeating Characters/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ class Solution {
5353
return max;
5454
}
5555
}
56-
```
57-
56+
```

solution/0007.Reverse Integer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
假设我们的环境只能存储 32 位有符号整数,其数值范围是 [−231, 231 − 1]。根据这个假设,如果反转后的整数溢出,则返回 0。
2727

2828
### 解法
29-
- 解法1
29+
- 解法1
3030

3131
用 long 型存储该整数,取绝对值,然后转成 StringBuilder 进行 reverse,后转回 int。注意判断该数是否在[Integer.MIN_VALUE, Intger.MAX_VALUE] 范围内。
3232

@@ -52,7 +52,7 @@ class Solution {
5252
}
5353
```
5454

55-
- 解法2
55+
- 解法2
5656

5757
循环对数字求 `%, /` ,累加,最后返回结果。注意判断值是否溢出。
5858
```java

solution/0015.3Sum/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
### 解法
1818
先对数组进行排序,遍历数组,固定第一个数i。利用两个指针 p, q 分别指示 i+1, n-1。如果三数之和为0,移动 p, q;如果大于 0,左移 q;如果小于 0,右移 p。遍历到 nums[i] > 0 时,退出循环。
1919

20-
还要注意过滤重复元素
20+
还要注意过滤重复元素。
21+
22+
#### Java
2123

2224
```java
2325
class Solution {

solution/0023.Merge k Sorted Lists/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
```
1616

1717
### 解法
18-
从链表数组索引 0 开始,[合并前后相邻两个有序链表](https://github.com/yanglbme/leetcode/tree/master/solution/021.Merge%20Two%20Sorted%20Lists),放在后一个链表位置上,依次循环下去...最后 lists[len - 1] 即为合并后的链表。注意处理链表数组元素小于 2 的情况。
18+
从链表数组索引 0 开始,[合并前后相邻两个有序链表](https://github.com/doocs/leetcode/tree/master/solution/021.Merge%20Two%20Sorted%20Lists),放在后一个链表位置上,依次循环下去...最后 lists[len - 1] 即为合并后的链表。注意处理链表数组元素小于 2 的情况。
1919

2020
--------------------------------
2121
思路1: 170ms

0 commit comments

Comments
 (0)