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

Appearance settings

Commit f53f294

Browse filesBrowse files
committed
move to wangfuyou.com
1 parent 0567d31 commit f53f294
Copy full SHA for f53f294

File tree

Expand file treeCollapse file tree

14 files changed

+451
-56
lines changed
Filter options
Expand file treeCollapse file tree

14 files changed

+451
-56
lines changed

‎.github/workflows/deploy.yml

Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+22-6Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,28 @@ jobs:
4242
npm run docs:build
4343
> src/.vuepress/dist/.nojekyll
4444
45-
- name: 部署文档
46-
uses: JamesIves/github-pages-deploy-action@v4
47-
with:
48-
# 这是文档部署到的分支名称
49-
branch: gh-pages
50-
folder: src/.vuepress/dist
45+
- name: 验证服务器连接
46+
env:
47+
SERVER_USER: ${{ secrets.SERVER_USER }}
48+
SERVER_HOST: ${{ secrets.SERVER_HOST }}
49+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
50+
run: |
51+
echo "$SSH_PRIVATE_KEY" > id_rsa
52+
chmod 600 id_rsa
53+
echo "SERVER_USER: $SERVER_USER"
54+
echo "SERVER_HOST: $SERVER_HOST"
55+
ssh -vvv -i id_rsa -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_HOST "touch /home/ubuntu/2xiao/test_file && echo '✅ 连接成功' || echo '❌ 连接失败'"
56+
57+
- name: 部署到服务器
58+
if: ${{ github.event_name == 'push' }}
59+
env:
60+
SERVER_USER: ${{ secrets.SERVER_USER }}
61+
SERVER_HOST: ${{ secrets.SERVER_HOST }}
62+
SERVER_PATH: ${{ secrets.SERVER_PATH }}
63+
run: |
64+
rsync -avz --chmod=D2775,F664 \
65+
-e "ssh -i id_rsa -o StrictHostKeyChecking=no" \
66+
src/.vuepress/dist/ $SERVER_USER@$SERVER_HOST:$SERVER_PATH
5167
5268
deploy-main:
5369
runs-on: ubuntu-latest

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LeetCode-JS
22

33
<p>
4-
<img src="https://2xiao.github.io/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
4+
<img src="https://wangfuyou.com/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
55
</p>
66

77
包含 LeetCode、《剑指 Offer》、《剑指 Offer II》等 1000+ 道算法题的详细题解。
@@ -10,7 +10,7 @@
1010

1111
欢迎「Star ⭐️ 」 和 「Fork」,这是对我最大的鼓励和支持。
1212

13-
电子书:[https://2xiao.github.io/leetcode-js](https://2xiao.github.io/leetcode-js)
13+
电子书:[https://wangfuyou.com/leetcode-js](https://wangfuyou.com/leetcode-js)
1414

1515
源码:[https://github.com/2xiao/leetcode-js](https://github.com/2xiao/leetcode-js)
1616

‎assets/scripts/const.py

Copy file name to clipboardExpand all lines: assets/scripts/const.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
online_path = 'https://2xiao.github.io/leetcode-js'
2+
online_path = 'https://wangfuyou.com/leetcode-js'
33
origin_path = '../origins/'
44
categories_path = '../origins/categories_list.md'
55

‎src/.vuepress/navbar.ts

Copy file name to clipboardExpand all lines: src/.vuepress/navbar.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ export default navbar([
1010
{
1111
text: 'React 源码',
1212
icon: 'react',
13-
link: 'https://2xiao.github.io/my-react/',
13+
link: 'https://wangfuyou.com/my-react/',
1414
target: '_self'
1515
},
1616
{
1717
text: 'Vue 源码',
1818
icon: 'vue',
19-
link: 'https://2xiao.github.io/my-vue/',
19+
link: 'https://wangfuyou.com/my-vue/',
2020
target: '_self'
2121
},
2222
{
2323
text: '系统设计',
2424
icon: 'launch',
25-
link: 'https://2xiao.github.io/system-design/',
25+
link: 'https://wangfuyou.com/system-design/',
2626
target: '_self'
2727
},
2828
{
2929
text: '前端面试题',
3030
icon: 'creative',
31-
link: 'https://2xiao.github.io/interview/',
31+
link: 'https://wangfuyou.com/interview/',
3232
target: '_self'
3333
},
3434
{
3535
text: '博客',
3636
icon: 'blog',
37-
link: 'https://2xiao.github.io/blog/',
37+
link: 'https://wangfuyou.com/blog/',
3838
target: '_self'
3939
}
4040
]);

‎src/.vuepress/theme.ts

Copy file name to clipboardExpand all lines: src/.vuepress/theme.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import sidebar from './sidebar.ts';
77
export default hopeTheme(
88
{
99
pure: true,
10-
hostname: 'https://2xiao.github.io',
10+
hostname: 'https://wangfuyou.com',
1111

1212
author: {
1313
name: '2xiao',

‎src/README.md

Copy file name to clipboardExpand all lines: src/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LeetCode-JS 通关指南
22

33
<p>
4-
<img src="https://2xiao.github.io/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
4+
<img src="https://wangfuyou.com/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
55
</p>
66

77
包含 LeetCode、《剑指 Offer》、《剑指 Offer II》等 1000+ 道算法题的详细题解。
@@ -10,7 +10,7 @@
1010

1111
欢迎「Star ⭐️ 」 和 「Fork」,这是对我最大的鼓励和支持。
1212

13-
电子书:[https://2xiao.github.io/leetcode-js](https://2xiao.github.io/leetcode-js)
13+
电子书:[https://wangfuyou.com/leetcode-js](https://wangfuyou.com/leetcode-js)
1414

1515
源码:[https://github.com/2xiao/leetcode-js](https://github.com/2xiao/leetcode-js)
1616

‎src/book/hash.md

Copy file name to clipboardExpand all lines: src/book/hash.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
:::: md-demo 相关题目
5959

60-
#### 📌 [705. 设计哈希集合 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0705.html)
60+
#### 📌 [705. 设计哈希集合 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0705.html)
6161

6262
#### 💻 **题目大意**
6363

@@ -169,7 +169,7 @@ class MyHashSet {
169169

170170
:::: md-demo 相关题目
171171

172-
#### 📌 [706. 设计哈希映射 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0706.html)
172+
#### 📌 [706. 设计哈希映射 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0706.html)
173173

174174
#### 💻 **题目大意**
175175

@@ -647,7 +647,6 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
647647
<!-- Please keep comment here to allow auto update -->
648648
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
649649

650-
651650
## 相关题目
652651

653652
<!-- prettier-ignore -->
@@ -685,4 +684,3 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
685684
| 149 | 直线上最多的点数 | [[]](/problem/0149.md) | [`几何`](/tag/geometry.md) [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/max-points-on-a-line) [🔗](https://leetcode.com/problems/max-points-on-a-line) |
686685
| 359 | 日志速率限制器 🔒 | | [`设计`](/tag/design.md) [`哈希表`](/tag/hash-table.md) [`数据流`](/tag/data-stream.md) | 🟢 | [🀄️](https://leetcode.cn/problems/logger-rate-limiter) [🔗](https://leetcode.com/problems/logger-rate-limiter) |
687686
| 811 | 子域名访问计数 | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/subdomain-visit-count) [🔗](https://leetcode.com/problems/subdomain-visit-count) |
688-

‎src/book/linked_list.md

Copy file name to clipboardExpand all lines: src/book/linked_list.md
+7-9Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ console.log(linkedList.count()); // output: 3
520520

521521
:::: md-demo 相关题目
522522

523-
#### 📌 [206. 反转链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0206.html)
523+
#### 📌 [206. 反转链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0206.html)
524524

525525
#### 💻 **题目大意**
526526

@@ -598,7 +598,7 @@ var reverseList = function (head) {
598598

599599
:::: md-demo 相关题目
600600

601-
#### 📌 [141. 环形链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0141.html)
601+
#### 📌 [141. 环形链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0141.html)
602602

603603
#### 💻 **题目大意**
604604

@@ -678,7 +678,7 @@ var hasCycle = function (head) {
678678

679679
:::: md-demo 相关题目
680680

681-
#### 📌 [21. 合并两个有序链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0021.html)
681+
#### 📌 [21. 合并两个有序链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0021.html)
682682

683683
#### 💻 **题目大意**
684684

@@ -755,7 +755,7 @@ var mergeTwoLists = function (list1, list2) {
755755

756756
:::: md-demo 相关题目
757757

758-
#### 📌 [19. 删除链表的倒数第 N 个节点 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0019.html)
758+
#### 📌 [19. 删除链表的倒数第 N 个节点 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0019.html)
759759

760760
#### 💻 **题目大意**
761761

@@ -834,7 +834,7 @@ var removeNthFromEnd = function (head, n) {
834834

835835
:::: md-demo 相关题目
836836

837-
#### 📌 [876. 链表的中间节点 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0876.html)
837+
#### 📌 [876. 链表的中间节点 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0876.html)
838838

839839
#### 💻 **题目大意**
840840

@@ -911,7 +911,7 @@ var middleNode = function (head) {
911911

912912
:::: md-demo 相关题目
913913

914-
#### 📌 [146. LRU 缓存 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0146.html)
914+
#### 📌 [146. LRU 缓存 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0146.html)
915915

916916
#### 💻 **题目大意**
917917

@@ -1068,7 +1068,7 @@ class LRUCache {
10681068

10691069
:::: md-demo 相关题目
10701070

1071-
#### 📌 [148. 链表排序 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0148.html)
1071+
#### 📌 [148. 链表排序 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0148.html)
10721072

10731073
::::
10741074

@@ -1683,7 +1683,6 @@ x.next = p.next; // 将x的节点的next指针指向b节点;
16831683
<!-- Please keep comment here to allow auto update -->
16841684
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
16851685

1686-
16871686
## 相关题目
16881687

16891688
#### 链表基础题目
@@ -1728,4 +1727,3 @@ x.next = p.next; // 将x的节点的next指针指向b节点;
17281727
| 143 | 重排链表 | [[]](/problem/0143.md) | [``](/tag/stack.md) [`递归`](/tag/recursion.md) [`链表`](/tag/linked-list.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/reorder-list) [🔗](https://leetcode.com/problems/reorder-list) |
17291728
| 2 | 两数相加 | [[]](/problem/0002.md) | [`递归`](/tag/recursion.md) [`链表`](/tag/linked-list.md) [`数学`](/tag/math.md) | 🟠 | [🀄️](https://leetcode.cn/problems/add-two-numbers) [🔗](https://leetcode.com/problems/add-two-numbers) |
17301729
| 445 | 两数相加 II | [[]](/problem/0445.md) | [``](/tag/stack.md) [`链表`](/tag/linked-list.md) [`数学`](/tag/math.md) | 🟠 | [🀄️](https://leetcode.cn/problems/add-two-numbers-ii) [🔗](https://leetcode.com/problems/add-two-numbers-ii) |
1731-

‎src/book/queue.md

Copy file name to clipboardExpand all lines: src/book/queue.md
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ console.log(queue.toString()); // output: 2,3
248248

249249
:::: md-demo 相关题目
250250

251-
#### 📌 [622. 设计循环队列 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0622.html)
251+
#### 📌 [622. 设计循环队列 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0622.html)
252252

253253
#### 💻 **题目大意**
254254

@@ -718,7 +718,6 @@ console.log(priorityQueue.count()); // output: 3
718718
<!-- Please keep comment here to allow auto update -->
719719
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
720720

721-
722721
## 相关题目
723722

724723
#### 队列基础题目
@@ -744,4 +743,3 @@ console.log(priorityQueue.count()); // output: 3
744743
| 295 | 数据流的中位数 | [[]](/problem/0295.md) | [`设计`](/tag/design.md) [`双指针`](/tag/two-pointers.md) [`数据流`](/tag/data-stream.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/find-median-from-data-stream) [🔗](https://leetcode.com/problems/find-median-from-data-stream) |
745744
| 23 | 合并 K 个升序链表 | [[]](/problem/0023.md) | [`链表`](/tag/linked-list.md) [`分治`](/tag/divide-and-conquer.md) [`堆(优先队列)`](/tag/heap-priority-queue.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/merge-k-sorted-lists) [🔗](https://leetcode.com/problems/merge-k-sorted-lists) |
746745
| 218 | 天际线问题 | | [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) [`数组`](/tag/array.md) `4+` | 🔴 | [🀄️](https://leetcode.cn/problems/the-skyline-problem) [🔗](https://leetcode.com/problems/the-skyline-problem) |
747-

‎src/book/stack.md

Copy file name to clipboardExpand all lines: src/book/stack.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ console.log(stack.count()); // output: 2
170170

171171
:::: md-demo 相关题目
172172

173-
#### 📌 [227. 基本计算器 II - LeetCode](https://2xiao.github.io/leetcode-js/problem/0227.html)
173+
#### 📌 [227. 基本计算器 II - LeetCode](https://wangfuyou.com/leetcode-js/problem/0227.html)
174174

175175
#### 💻 **题目大意**
176176

@@ -223,7 +223,7 @@ console.log(stack.count()); // output: 2
223223

224224
:::: md-demo 相关题目
225225

226-
#### 📌 [20. 有效的括号 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0020.html)
226+
#### 📌 [20. 有效的括号 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0020.html)
227227

228228
#### 💻 **题目大意**
229229

@@ -299,7 +299,7 @@ var isValid = function (s) {
299299

300300
:::: md-demo 相关题目
301301

302-
#### 📌 [1472. 设计浏览器历史记录 - LeetCode](https://2xiao.github.io/leetcode-js/problem/1472.html)
302+
#### 📌 [1472. 设计浏览器历史记录 - LeetCode](https://wangfuyou.com/leetcode-js/problem/1472.html)
303303

304304
#### 💻 **题目大意**
305305

@@ -479,7 +479,7 @@ function add(x, y) {
479479

480480
:::: md-demo 相关题目
481481

482-
#### 📌 [496. 下一个更大元素 I - LeetCode](https://2xiao.github.io/leetcode-js/problem/0496.html)
482+
#### 📌 [496. 下一个更大元素 I - LeetCode](https://wangfuyou.com/leetcode-js/problem/0496.html)
483483

484484
#### 💻 **题目大意**
485485

@@ -549,7 +549,7 @@ var nextGreaterElement = function (nums1, nums2) {
549549

550550
:::: md-demo 相关题目
551551

552-
#### 📌 [739. 每日温度 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0739.html)
552+
#### 📌 [739. 每日温度 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0739.html)
553553

554554
#### 💻 **题目大意**
555555

@@ -619,7 +619,6 @@ var dailyTemperatures = function (temperatures) {
619619
<!-- Please keep comment here to allow auto update -->
620620
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
621621

622-
623622
## 相关题目
624623

625624
#### 栈基础题目
@@ -654,4 +653,3 @@ var dailyTemperatures = function (temperatures) {
654653
| 316 | 去除重复字母 | [[]](/problem/0316.md) | [``](/tag/stack.md) [`贪心`](/tag/greedy.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/remove-duplicate-letters) [🔗](https://leetcode.com/problems/remove-duplicate-letters) |
655654
| 42 | 接雨水 | [[]](/problem/0042.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/trapping-rain-water) [🔗](https://leetcode.com/problems/trapping-rain-water) |
656655
| 85 | 最大矩形 | [[]](/problem/0085.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/maximal-rectangle) [🔗](https://leetcode.com/problems/maximal-rectangle) |
657-

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.