build
This commit is contained in:
parent
376e8b3010
commit
bca1245c9b
@ -328,8 +328,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
void insert(ListNode n0, ListNode P) {
|
||||
ListNode n1 = n0.next;
|
||||
n0.next = P;
|
||||
P.next = n1;
|
||||
n0.next = P;
|
||||
}
|
||||
```
|
||||
|
||||
@ -339,8 +339,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
void insert(ListNode* n0, ListNode* P) {
|
||||
ListNode* n1 = n0->next;
|
||||
n0->next = P;
|
||||
P->next = n1;
|
||||
n0->next = P;
|
||||
}
|
||||
```
|
||||
|
||||
@ -350,8 +350,8 @@ comments: true
|
||||
""" 在链表的结点 n0 之后插入结点 P """
|
||||
def insert(n0, P):
|
||||
n1 = n0.next
|
||||
n0.next = P
|
||||
P.next = n1
|
||||
n0.next = P
|
||||
```
|
||||
|
||||
=== "Go"
|
||||
@ -360,8 +360,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
func insertNode(n0 *ListNode, P *ListNode) {
|
||||
n1 := n0.Next
|
||||
n0.Next = P
|
||||
P.Next = n1
|
||||
n0.Next = P
|
||||
}
|
||||
```
|
||||
|
||||
@ -371,8 +371,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
function insert(n0, P) {
|
||||
const n1 = n0.next;
|
||||
n0.next = P;
|
||||
P.next = n1;
|
||||
n0.next = P;
|
||||
}
|
||||
```
|
||||
|
||||
@ -382,8 +382,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
function insert(n0: ListNode, P: ListNode): void {
|
||||
const n1 = n0.next;
|
||||
n0.next = P;
|
||||
P.next = n1;
|
||||
n0.next = P;
|
||||
}
|
||||
```
|
||||
|
||||
@ -400,8 +400,8 @@ comments: true
|
||||
void insert(ListNode n0, ListNode P)
|
||||
{
|
||||
ListNode? n1 = n0.next;
|
||||
n0.next = P;
|
||||
P.next = n1;
|
||||
n0.next = P;
|
||||
}
|
||||
```
|
||||
|
||||
@ -411,8 +411,8 @@ comments: true
|
||||
/* 在链表的结点 n0 之后插入结点 P */
|
||||
func insert(n0: ListNode, P: ListNode) {
|
||||
let n1 = n0.next
|
||||
n0.next = P
|
||||
P.next = n1
|
||||
n0.next = P
|
||||
}
|
||||
```
|
||||
|
||||
@ -422,8 +422,8 @@ comments: true
|
||||
// 在链表的结点 n0 之后插入结点 P
|
||||
fn insert(n0: ?*inc.ListNode(i32), P: ?*inc.ListNode(i32)) void {
|
||||
var n1 = n0.?.next;
|
||||
n0.?.next = P;
|
||||
P.?.next = n1;
|
||||
n0.?.next = P;
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -10,7 +10,7 @@ comments: true
|
||||
|
||||
回想自己当初在“扫雷式”刷题中被炸的满头包的痛苦,思考良久,**我意识到一本“前期刷题必看”的读物可以使算法小白少走许多弯路**。写作意愿滚滚袭来,那就动笔吧:
|
||||
|
||||
<h4 align="center"> Hello,算法! </h4>
|
||||
<h4 align="center"> Hello 算法! </h4>
|
||||
|
||||
## 0.1.1. 读者对象
|
||||
|
||||
@ -41,7 +41,7 @@ comments: true
|
||||
本书的成书过程中,我获得了许多人的帮助,包括但不限于:
|
||||
|
||||
- 感谢我的女朋友泡泡担任本书的首位读者,从算法小白的视角为本书的写作提出了许多建议,使这本书更加适合算法初学者来阅读。
|
||||
- 感谢腾宝、琦宝、飞宝为本书起了个响当当的名字,好听又有梗,直接唤起我最初敲下第一行代码 "Hello, World!" 的回忆。
|
||||
- 感谢腾宝、琦宝、飞宝为本书起了个响当当的名字,好听又有梗,直接唤起我最初敲下第一行代码 "Hello World!" 的回忆。
|
||||
- 感谢我的导师李博,在小酌畅谈时您告诉我“觉得应该做就去做”,坚定了我写这本书的决心。
|
||||
- 感谢苏潼为本书设计了封面和 LOGO ,我有些强迫症,前后多次修改,谢谢你的耐心。
|
||||
- 感谢 @squidfunk 给出的写作排版建议,以及优秀开源项目 [Material-for-MkDocs](https://github.com/squidfunk/mkdocs-material/tree/master) 。
|
||||
|
4
index.md
4
index.md
@ -7,9 +7,9 @@ hide:
|
||||
=== " "
|
||||
|
||||
<div class="result" markdown>
|
||||
{ align=left width=350 }
|
||||
{ align=left width=330 }
|
||||
</br></br></br></br></br>
|
||||
<h1 align="center"> 《 Hello,算法 》 </h1>
|
||||
<h1 align="center"> 《 Hello 算法 》 </h1>
|
||||
<p align="center"> 动画图解、能运行、可提问的</br>数据结构与算法快速入门教程 </p>
|
||||
<p align="center"> [](https://github.com/krahets/hello-algo)</p>
|
||||
<h6 align="center"> [@Krahets](https://leetcode.cn/u/jyd/) </h6>
|
||||
|
Loading…
Reference in New Issue
Block a user