Skip to content

Commit

Permalink
Fix array_deque.java
Browse files Browse the repository at this point in the history
Unify the book name.
Update cover image.
  • Loading branch information
krahets committed Feb 27, 2023
1 parent f83bf77 commit 18f2ec4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion codes/java/chapter_stack_and_queue/array_deque.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public int[] toArray() {
public class array_deque {
public static void main(String[] args) {
/* 初始化双向队列 */
LinkedListDeque deque = new LinkedListDeque();
ArrayDeque deque = new ArrayDeque(10);
deque.pushLast(3);
deque.pushLast(2);
deque.pushLast(5);
Expand Down
4 changes: 2 additions & 2 deletions docs/chapter_preface/about_the_book.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

回想自己当初在“扫雷式”刷题中被炸的满头包的痛苦,思考良久,**我意识到一本“前期刷题必看”的读物可以使算法小白少走许多弯路**。写作意愿滚滚袭来,那就动笔吧:

<h4 align="center"> Hello算法! </h4>
<h4 align="center"> Hello 算法! </h4>

## 读者对象

Expand Down Expand Up @@ -35,7 +35,7 @@
本书的成书过程中,我获得了许多人的帮助,包括但不限于:

- 感谢我的女朋友泡泡担任本书的首位读者,从算法小白的视角为本书的写作提出了许多建议,使这本书更加适合算法初学者来阅读。
- 感谢腾宝、琦宝、飞宝为本书起了个响当当的名字,好听又有梗,直接唤起我最初敲下第一行代码 "Hello, World!" 的回忆。
- 感谢腾宝、琦宝、飞宝为本书起了个响当当的名字,好听又有梗,直接唤起我最初敲下第一行代码 "Hello World!" 的回忆。
- 感谢我的导师李博,在小酌畅谈时您告诉我“觉得应该做就去做”,坚定了我写这本书的决心。
- 感谢苏潼为本书设计了封面和 LOGO ,我有些强迫症,前后多次修改,谢谢你的耐心。
- 感谢 @squidfunk 给出的写作排版建议,以及优秀开源项目 [Material-for-MkDocs](https://github.com/squidfunk/mkdocs-material/tree/master)
Expand Down
8 changes: 4 additions & 4 deletions docs/chapter_sorting/quick_sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
=== "<9>"
![pivot_division_step9](quick_sort.assets/pivot_division_step9.png)

!!! note "快速排序的分治思想"

哨兵划分的实质是将 **一个长数组的排序问题** 简化为 **两个短数组的排序问题**。

=== "Java"

```java title="quick_sort.java"
Expand Down Expand Up @@ -111,10 +115,6 @@
[class]{QuickSort}-[func]{partition}
```

!!! note "快速排序的分治思想"

哨兵划分的实质是将 **一个长数组的排序问题** 简化为 **两个短数组的排序问题**。

## 算法流程

1. 首先,对数组执行一次「哨兵划分」,得到待排序的 **左子数组****右子数组**
Expand Down
Binary file modified docs/index.assets/conceptual_rendering.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ hide:
=== " "

<div class="result" markdown>
![conceptual_rendering](index.assets/conceptual_rendering.png){ align=left width=350 }
![conceptual_rendering](index.assets/conceptual_rendering.png){ 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"> [![github-stars](https://img.shields.io/github/stars/krahets/hello-algo?style=social)](https://github.com/krahets/hello-algo)</p>
<h6 align="center"> [@Krahets](https://leetcode.cn/u/jyd/) </h6>
Expand Down

0 comments on commit 18f2ec4

Please sign in to comment.