Commit graph

1875 commits

Author SHA1 Message Date
Arthur
962f8f91f7
fix some bugs in c codes (#1089) 2024-02-23 01:34:49 +08:00
Yudong Jin
799da32eb0
Bug fixes and improvements (#1092)
* Bug fixes

* Bug fixes

* Reduce figures size

* Update LeetCode problems repo in suggestions.md

* Fix the figures of pivot_division_steps
2024-02-23 01:22:46 +08:00
curtishd
507357ace1
feat(kotlin): Add kotlin code for backtracking chapter (#1088)
* feat(kotlin):new kotlin support files

* fix(kotlin):

    reviewed the formatting, comments and so on.

* fix(kotlin): fix the indentation and format

* feat(kotlin): Add kotlin code for the backtraking chapter.

* fix(kotlin): fix incorrect output of preorder_traversal_iii_template.kt file

* fix(kotlin): simplify kotlin codes

* fix(kotlin): modify n_queens.kt for consistency.
2024-02-21 01:57:41 +08:00
Reanon
e9341c51b5
fix(go): record slice array result, fixed #1075 (#1087) 2024-02-18 18:37:07 +08:00
Yudong Jin
e813b5a0fa
Bug fixes and improvements (#1078)
* Fix the logo in the en version

* Optimize header color and fix body background color

* Update theme switch's name

* Fix backfrop-filter on Safari

* Update some animation's file name for adding egde when cropping

* Re-count the comments number

* A bug fix in n_queens_problem.md
2024-02-14 18:37:18 +08:00
SamJin98
5f82a86bd6
translation: Updated chapter_array_and_linkedlist/linked_list.md (#1042)
* translation: Updated chapter_array_and_linkedlist/linked_list.md

* Update chapter_array_and_linkedlist/linked_list.md

* Update chapter_array_and_linkedlist/linked_list.md

* Update linked_list.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-02-12 23:35:10 +08:00
curtishd
4b990c10ce
feat(Kotlin): Add Kotlin code for the array and linked list chapter (#1070)
* feat(kotlin):new kotlin support files

* fix(kotlin):

    reviewed the formatting, comments and so on.

* fix(kotlin): fix the indentation and format
2024-02-07 22:55:29 +08:00
K3v123
225d2ae314
Update index.md (#1069)
refined some sentences to make it sound more fluent.
2024-02-07 22:22:05 +08:00
Yudong Jin
a005c6ebd3
Some improvements (#1073)
* Update avatar's link in the landing page

* Bug fixes

* Move assets folder from overrides to docs

* Reduce figures' corner radius

* Update copyright

* Update header image

* Krahets -> krahets

* Update the landing page
2024-02-07 22:21:18 +08:00
CuB3y0nd
b77abf058a
typo: Fix typo in chapter_preface/index.md (#1072)
* typo: Fix typo in chapter_preface/index.md

* Update index.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-02-04 22:37:14 +08:00
Spark
d81276a4f3
translation: Update chapter_stack_and_queue/summary.md (#1048)
* Update summary.md

* Update chapter_stack_and_queue/summary.md  with review suggestions
2024-02-03 04:48:58 +08:00
Spark
cb2a4c839e
translation: Update chapter_data_structure/character_encoding.md (#1045)
* chapter_data_structure/character_encoding.md

* Update character_encoding.md

* Update character_encoding.md with review suggestions
2024-02-02 18:27:47 +08:00
Yudong Jin
ead5182288
Update the landing page, preface and reference (#1067)
* Add preface to the preface chapter and the introduction chapter

* Update the landing page

* Update the reference
2024-01-30 17:48:54 +08:00
Loong Loong
d807077e54
Updated terminology.md (#1043)
* only with the update of terminology.md

* Reformat table

* 栈底

* Update terminology.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-28 22:57:35 +08:00
K3v123
b8b4b09251
translation:Update chapter_stack_and_queue/stack.md (#1038)
* Update stack.md

did some minor changes

* Update stack.md

changed the part to what Phoenix has suggested.
2024-01-28 22:47:30 +08:00
Yudong Jin
0bd4c34b9a
translation: Add the initial translation of the hashing chapter (#1066)
* Add the initial translation of the hashing chapter

* Fix
2024-01-28 22:22:36 +08:00
ElbertYang
244c04fe44
translation: Update chapter_stack_and_queue/index.md (#1035)
* Updata number_encoding.md

* Update number_encodimg.md

* update chapter_stack_and_queue/index.md
2024-01-28 19:38:22 +08:00
易春风
d4d281cd67
Fix the issue of discussion 514 (#1064) 2024-01-27 19:42:19 +08:00
SamJin98
7a80555a2c
translation: Update chapter_array_and_linkedlist/list.md (#1032)
* Translation: Update chapter_array_and_linkedlist/list.md

* translation: Updated chapter_array_and_linkedlist/linked_list.md

* Revert "translation: Updated chapter_array_and_linkedlist/linked_list.md"

This reverts commit fceeaf8fd6.

* Update chapter_array_and_linkedlist/list.md

* Update chapter_array_and_linkedlist/list.md

* Update chapter_array_and_linkedlist/list.md

---------

Co-authored-by: jinruilin <jinruilin@crecg.com>
2024-01-25 16:55:27 +08:00
Scai
84f4b8d285
fix: Update linkedlist_deque.cpp (#1062)
There is something error when delete node, should 'delete front' or 'delete rear' outside the body of if cycle.
2024-01-25 12:51:17 +08:00
Yudong Jin
c69ae9534d
Some bug fixes and improvements (#1063)
* Prevent the line breaks of buttons on Safari

* Fix a math symbol

* Small improvements

* Bug fixes and improvements.
2024-01-25 12:50:53 +08:00
Ma Meiyu
82da279c60
Update space_complexity.md (#1057)
* Update space_complexity.md

10进制正整数n的位数计算的对数部分应该取整

* Update space_complexity.md

* Update space_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-23 22:11:34 +08:00
gonglja
e69f60c07c
fix(linkedlist_queue.c): Remove redundant conditional judgments. (#1055) 2024-01-23 22:09:45 +08:00
Yudong Jin
504c6b0568
The 4th revision (#1060) 2024-01-23 22:08:53 +08:00
Yudong Jin
dbb2c07cb1
Redesign the landing page (#1059) 2024-01-23 22:06:15 +08:00
hpstory
85f0071c2a
fix(csharp): while loop II comment (#1052) 2024-01-17 15:26:41 +08:00
Yudong Jin
0d294b1731
Improve the landing page, mindmap and pull request template (#1053)
* Add the hero image.

* Remove code badges from the landing page

* Update the style of the mindmap

* Update the quote of knowledge sharing

* Fix a type

* Update the pull request template

* Update index.md of docs-en
2024-01-17 15:26:02 +08:00
K3v123
f2b283bb06
translation: Update chapter_array_and_linkedlist/summary.md (#1026)
* Update summary.md

changed some words to make it more consistent to the changed mds.

* Update summary.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-14 16:12:59 +08:00
Yudong Jin
f6976978dd
Prepare 1.0.0 release (#1044)
* Update the book with the thrid revised edition

* Fix a typo

* Update the contributors' information

* Update the mindmap

* Update the version number
2024-01-14 03:16:20 +08:00
hpstory
b9ae4ffe9a
feature: add auto-build-and-test workflow for go (#1019)
* fix(csharp): unified array statement

* feature: add workflow for go/js/ts/zig

* fix python UnicodeDecodeError on windows

* Update space_complexity.go

* Update space_complexity_test.go

* Update space_complexity.go

* remove nodejs, zip workflow

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-12 14:17:21 +08:00
Yudong Jin
d85a3bb74d
Figures revision and bug fixes (#1041)
* Revised the figures thoughout the book.

* Utilize roboto and roboto mono as the font faimly of the English edition

* Fix the naming style

* Update two figures.

* Fix margin of the hero image

* Fix margin of the hero image
2024-01-12 14:15:07 +08:00
Yudong Jin
0b7e99dafa
feat: Adjust the size of pythontutor blocks (#1036)
* Update the style of the python tutor blocks

* Use pythontutor links instead of iframe in the documents
2024-01-09 16:09:35 +08:00
Yudong Jin
d3cb600910
translation: Add the initial translation of the chapter of stack and queue (#1033)
* Update the format of Q&As in docs-en

* Fix the code comments of JavaScript and TypeScript

* Add the initial translation of the chapter of stack and queue
2024-01-08 19:06:37 +08:00
Yudong Jin
c4e4a607e8
Update the format of the Q&As (#1031) 2024-01-08 18:03:57 +08:00
K3v123
e7c39dd0c7
translation: Update array.md (#1010)
* Update array.md

refined some parts, some changed up a bit.

* Update array.md

edited the things that yanedie has mentioned (not including the final review).
I will simplify a bit in the next commit (I'll try make a balance).

thank you so much for the review Yanedie!

* Update array.md

done the all the parts that Yanedie has suggested.
please check if this version is alright, or is the previous version is better?
thanks and happy new year!

* Update array.md

changed the things that Phoenix has commented.
2024-01-08 15:07:26 +08:00
Yudong Jin
ee485372fe
feat: Add pythontutor blocks to the rest of the chapters (#1030)
* Fix Python code

* Add the pythontutor blocks of the chapter tree, heap, graph, searching, sorting, divide and conquer, dynamic programming and greedy.
Improve the pythontutor blocks of the chapter array and linkedlist and backtracking.
Add the tutorial of pythontutor in how-to-read section.

* Reduce the image's file size.
2024-01-07 23:49:26 +08:00
Yudong Jin
ddd375af20
feat: Add visualizing code blocks based on the pythontutor (#1029)
* Update copyright

* Update the Python code

* Fix the code comments in ArrayBinaryTree

* Fix the code comments in ArrayBinaryTree

* Roll back time_comlexity.py

* Add the visualizing code(pythontutor) blocks to the chapter complexity, data structure, array and linked list, stack and queue, hash table, and backtracking

* Fix the code comments
2024-01-07 04:04:01 +08:00
Justin Tse
0f5b924036
Fix: recursion bug for JS and TS (#1028) 2024-01-06 16:29:39 +08:00
K3v123
edf3f3e33a
translation: Update index.md (#1009)
* Update index.md

improved the abstract.

* Update index.md

redid the sentences, if this one is no good then I will just use what Yuelinxin has provided me.
thanks and sorry for the inconvenience, also happy new year!

* Update index.md

deleted sinuous.
2024-01-06 14:48:09 +08:00
易春风
ad663615e6
Fix the issues of discusscomment 7949412 and 7985550 (#1027) 2024-01-06 14:47:32 +08:00
Spark
a280c3d26e
translation: chapter_preface/suggestions.md (#999)
* Translate chapter_preface/suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

* Update suggestions.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-06 02:26:17 +08:00
ElbertYang
175e6d98d8
translation: Update chapter_data_structure/number_encoding.md (#1012)
* Updata number_encoding.md

* Update number_encodimg.md
2024-01-06 02:25:40 +08:00
th1nk3r-ing
d06503b50b
fix(cpp): cmake compile my_list.cpp for target list (#1025) 2024-01-05 17:29:53 +08:00
Yuelin Xin
63efa3234c
translation: update chapter_data_structure/basic_data_types.md (#1018)
* refine preface index and about_the_book

* update about_the_book

* address suggestions in #997 review

* Update about_the_book.md

* update about_the_book

* Update about_the_book.md

* refine translation of basic_data_types.md

* updated basic_data_types.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-04 02:50:17 +08:00
Yudong Jin
5866d275ff
Fix two figures (#1024)
* Fix two figures

* Fix a figure
2024-01-04 02:48:48 +08:00
gonglja
3a559f1b60
Fix some code bugs (#1021)
* fix(counting_sort.c): Fix access out-of-bounds issue

* fix(hash_map_open_addressing.c): Fix coding errors

* fix(binary_search_tree.c): Fix unreleased memory

* Update indentataion
2024-01-02 21:45:01 +08:00
krahets
ef40418129 Update README and the contributors information 2024-01-02 15:14:42 +08:00
Yudong Jin
e4252d5733
Update the figures and cover images (#1020)
* Update all the figures

* Update the data structure, sorting, divide and conquer chapters' covers. Add the English edition covers.

* Fix the link of EN translation in README

* Update README.md

* Update README.md

* Update README-en.md
2024-01-02 15:06:44 +08:00
codingonion
7ffef7e1d6
update the author info sjinzh -> codingonion (#1017)
* update author information

* Update index.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-02 01:25:37 +08:00
K3v123
0a3d66beb4
translation: Update classification_of_data_structure.md (#1005)
* Update classification_of_data_structure.md

refined some parts here and there.
Overall its pretty accurate anyways.
Merry Christmas everyone!

* Update classification_of_data_structure.md

I tried to fix most of the stuff listed, um some the empty spaces looks different from the editor view, so its a bit hard to see, not sure if i did it correct or not. thanks again for the review Krahets

* Update classification_of_data_structure.md

Made changes to to what Yuelinxin and Krahets pointed out.
Deleted extra lines.
again thanks and sorry for my inadvertence.

* Update classification_of_data_structure.md

re-edited, with changes that Phoenix0415 has mentioned.
thank you so much for the review Phoenix!

* Update classification_of_data_structure.md

After having another skim through, I realized that I have misunderstood, what  Phoenix is saying, so I recap'd the bold ones again.
sorry for the inconvenience

* Update classification_of_data_structure with Grammarly

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-01-02 01:02:29 +08:00