From bca1245c9bf2c81d31fdd9dcb95cce00734813c6 Mon Sep 17 00:00:00 2001 From: krahets Date: Mon, 27 Feb 2023 20:26:05 +0800 Subject: [PATCH] build --- chapter_array_and_linkedlist/linked_list.md | 18 +++++++++--------- chapter_preface/about_the_book.md | 4 ++-- index.md | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/chapter_array_and_linkedlist/linked_list.md b/chapter_array_and_linkedlist/linked_list.md index 77e4a1d6f..c9414c1c4 100755 --- a/chapter_array_and_linkedlist/linked_list.md +++ b/chapter_array_and_linkedlist/linked_list.md @@ -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; } ``` diff --git a/chapter_preface/about_the_book.md b/chapter_preface/about_the_book.md index d756a17c0..603e1fed7 100644 --- a/chapter_preface/about_the_book.md +++ b/chapter_preface/about_the_book.md @@ -10,7 +10,7 @@ comments: true 回想自己当初在“扫雷式”刷题中被炸的满头包的痛苦,思考良久,**我意识到一本“前期刷题必看”的读物可以使算法小白少走许多弯路**。写作意愿滚滚袭来,那就动笔吧: -

Hello,算法!

+

Hello 算法!

## 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) 。 diff --git a/index.md b/index.md index 6be25a7e0..81cedd511 100644 --- a/index.md +++ b/index.md @@ -7,9 +7,9 @@ hide: === " "
- ![conceptual_rendering](index.assets/conceptual_rendering.png){ align=left width=350 } + ![conceptual_rendering](index.assets/conceptual_rendering.png){ align=left width=330 }




-

《 Hello,算法 》

+

《 Hello 算法 》

动画图解、能运行、可提问的
数据结构与算法快速入门教程

[![github-stars](https://img.shields.io/github/stars/krahets/hello-algo?style=social)](https://github.com/krahets/hello-algo)

[@Krahets](https://leetcode.cn/u/jyd/)