Skip to content

Commit

Permalink
Several improvements (#1002)
Browse files Browse the repository at this point in the history
* Update buttons.

* Update button svg

* Update button

* Update README.md

* Update index.md

* Update translation of about_the _book

* Update English headings.
  • Loading branch information
krahets authored Dec 24, 2023
1 parent b115a2b commit 6d961d3
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 21 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

<p align="center">
<a href="https://www.hello-algo.com/">
<img src="https://www.hello-algo.com/index.assets/btn_read_online_dark.svg" width="155"></a>
<img src="https://www.hello-algo.com/index.assets/btn_read_online_dark.svg" width="145"></a>
<a href="https://github.com/krahets/hello-algo/releases">
<img src="https://www.hello-algo.com/index.assets/btn_download_pdf_dark.svg" width="155"></a>
<img src="https://www.hello-algo.com/index.assets/btn_download_pdf_dark.svg" width="145"></a>
<a href="https://github.com/krahets/hello-algo/blob/master/README-en.md">
<img src="https://www.hello-algo.com/index.assets/btn_english_edition_dark.svg" width="155"></a>
<img src="https://www.hello-algo.com/index.assets/btn_english_edition_dark.svg" width="145"></a>
</p>

<p align="center">
Expand Down
5 changes: 3 additions & 2 deletions codes/c/chapter_array_and_linkedlist/linked_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ void removeItem(ListNode *n0) {

/* 访问链表中索引为 index 的节点 */
ListNode *access(ListNode *head, int index) {
while (head && head->next && index) {
for (int i = 0; i < index; i++) {
if (head == NULL)
return NULL;
head = head->next;
index--;
}
return head;
}
Expand Down
4 changes: 2 additions & 2 deletions docs-en/chapter_preface/about_the_book.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ During the creation of this book, I received help from many people, including bu

During the writing process, I read many textbooks and articles on data structures and algorithms. These works provide excellent models for this book and ensure the accuracy and quality of its contents. I would like to thank all my teachers and predecessors for their outstanding contributions!

This book promotes a hands-on approach to learning, and in this respect is heavily inspired by ["Hands-On Learning for Depth"](https://github.com/d2l-ai/d2l-zh). I highly recommend this excellent book to all readers.
This book promotes a hands-on approach to learning, and in this respect is heavily inspired by ["Dive into Deep Learning"](https://github.com/d2l-ai/d2l-zh). I highly recommend this excellent book to you.

A heartfelt thank you to my parents, it is your constant support and encouragement that gives me the opportunity to do this fun-filled thing.
**A heartfelt thank you to my parents, it is your constant support and encouragement that gives me the opportunity to do this fun-filled thing**.
Binary file modified docs-en/index.assets/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-en/index.assets/animation_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs-en/index.assets/btn_chinese_edition.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs-en/index.assets/btn_chinese_edition_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs-en/index.assets/btn_download_pdf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d961d3

Please sign in to comment.