Skip to content

Commit b170f9f

Browse files
committed
fix: update images path
1 parent cdc7106 commit b170f9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+42
-43
lines changed

README.md

+3-3

README_EN.md

+3-3
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
1010
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
1111
<link rel="stylesheet" href="//unpkg.com/docsify-dark-mode@0.6.1/dist/style.css" />
12-
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
13-
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
12+
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
13+
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
1414
</head>
1515

1616
<body>
17-
<div id="app">本系列知识由 Doocs 开源社区原创发布</div>
17+
<div id="app">本系列知识由 Doocs 技术社区原创发布</div>
1818
<script>
1919
window.$docsify = {
2020
name: 'leetcode',
21-
logo: '/img/doocs-leetcode.png',
21+
logo: '/images/doocs-leetcode.png',
2222
search: [
2323
'/','/solution/','/lcof/','lcci/'
2424
],

lcof/面试题24. 反转链表/README.md

+16-14

lcof/面试题24. 反转链表/Solution.java

+4-7
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@
88
*/
99
class Solution {
1010
public ListNode reverseList(ListNode head) {
11-
if (head == null) {
12-
return head;
13-
}
14-
ListNode dummy = new ListNode(0);
11+
ListNode pre = null;
1512
ListNode p = head;
1613
while (p != null) {
1714
ListNode q = p.next;
18-
p.next = dummy.next;
19-
dummy.next = p;
15+
p.next = pre;
16+
pre = p;
2017
p = q;
2118
}
22-
return dummy.next;
19+
return pre;
2320
}
2421
}

lcof/面试题24. 反转链表/Solution.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66

77
class Solution:
88
def reverseList(self, head: ListNode) -> ListNode:
9-
if not head:
10-
return head
11-
dummy = ListNode(0)
12-
p = head
9+
pre, p = None, head
1310
while p:
1411
q = p.next
15-
p.next = dummy.next
16-
dummy.next = p
12+
p.next = pre
13+
pre = p
1714
p = q
18-
return dummy.next
15+
return pre

lcof/面试题25. 合并两个排序的链表/README.md

+3

lcof/面试题35. 复杂链表的复制/README.md

+3-3

lcof/面试题36. 二叉搜索树与双向链表/README.md

+2-2

0 commit comments

Comments
 (0)