1850 Commits

Author SHA1 Message Date
7f43f92ae9 Bug fixes and improvements (#1152)
* Update avl_tree.md

* Remove the empty space

* Simplify the heading of the paperbook chapter

* Update hash_map_open_addressing.go to the latest version

* Improvements
2024-03-18 13:34:02 +08:00
6f1ec66949 Fix rust compile warning and an obvious print error in array.rs (#1144)
* Fix rust compile warning and an obvious print error in array.rs

* Update LinkedList

1. drop unnessaray mut borrow
2. fmt code and make variable more readable

* follow convention of this repo

* Update list_node.rs

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-18 02:44:03 +08:00
7b1094318b cargo fmt rust code (#1131)
* cargo fmt code

* Add empty line to seperate unrelated comments

* Fix review

* Update bubble_sort.rs

* Update merge_sort.rs

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-16 02:13:41 +08:00
54ceef3443 feat(kotlin): add kotlin codes for the chapter of searching. (#1140) 2024-03-15 17:11:41 +08:00
eb10d07728 Optimize the representation of the AVL tree (#1106)
* Optimize the representation of the AVL tree

* Update avl_tree.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-15 02:17:35 +08:00
a05192ea0f Add kotlin code for the chapter of heap (#1115)
* feat(kotlin): add kotlin code for dynamic programming.

* Update knapsack.kt

* feat(kotlin): add kotlin codes for graph.

* style(kotlin): reformatted the codes.

* feat(kotlin): add kotlin codes for the chapter of greedy.

* Update max_product_cutting.kt

* feat(kotlin): add kotlin code for chapter of hashing.

* style(kotlin): modified some comment

* Update array_hash_map.kt

* Update hash_map_chaining.kt

* Update hash_map_chaining.kt

* feat(kotlin): add kotlin codes for the chapter of heap.

* Update my_heap.kt
2024-03-15 01:12:00 +08:00
9769e14017 Fix the median_three mehod for quick sort (#1134)
* Add the section of terminologies.

* fix format

* Fix median_three function for quick sort

* Delete docs/chapter_appendix/terminologies.md

* Update quick_sort.ts

* Update quick_sort.rs

* Update quick_sort.js
2024-03-15 01:06:59 +08:00
644eaf99ff fix: code comments for insertion_sort.go (#1132)
* fix: code comments for insertion_sort.go

* Update insertion_sort.go

---------

Co-authored-by: Prime Xiao <primexiao.dev@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-14 20:25:21 +08:00
01c67781fa Bug fixes and improvements (#1133)
* Bug fixes

* Update the figure of the JD link

* Unify the code comments of insertion_sort
2024-03-14 20:01:16 +08:00
eadf4c86d4 Add kotlin code for the chapter of hashing (#1104)
* feat(kotlin): add kotlin code for dynamic programming.

* Update knapsack.kt

* feat(kotlin): add kotlin codes for graph.

* style(kotlin): reformatted the codes.

* feat(kotlin): add kotlin codes for the chapter of greedy.

* Update max_product_cutting.kt

* feat(kotlin): add kotlin code for chapter of hashing.

* style(kotlin): modified some comment

* Update array_hash_map.kt

* Update hash_map_chaining.kt

* Update hash_map_chaining.kt
2024-03-12 14:08:15 +08:00
cf0817370b translation: Update chapter_stack_and_queue/deque.md (#1068)
* Update deque.md

* Update deque.md

* Update deque.md
2024-03-11 02:43:32 +08:00
aca031c6c1 Add the section of introduction to the paper book (#1114)
* Use Roboto mono as the font of the footers

* Bug fixes

* Add the introduction to the paper book.

* Add the 'new' label to the toc

* Turn off the autoplay

* Polish the intro to paperbook
2024-03-11 02:41:47 +08:00
3474405863 translation: Update the figures in the chapter of complexity analysis (#1080)
* Translate the figures of the chapter of complexity analysis

* Bug fixes and size reduction

* Use Roboto Mono as the font of the footer

* Bug fixes
2024-03-04 15:10:00 +08:00
7e0e32be9c translation: Update the figures for the chapter of data sturcture (#1083)
* Update the figures for the chapter of data sturcture

* Bug fixes and size reduction

* Reducing file size
2024-03-04 14:31:40 +08:00
c16476d97b translation: Update the figures for the chapter of stack and queue (#1084)
* Update the figures for the chapter of stack and queue

* Bug fixes and reducing file size
2024-03-04 14:23:09 +08:00
87e5b297f8 Reduce the file size of the landing page (#1105)
* Update suggestions.md

* Add announcement of the paper book release

* Fix size of svg

* Update contrib rocks image

* Optimize HTML of the landing page

* Fix the line breaks
2024-03-04 13:37:29 +08:00
89679a4a13 Add kotlin codes for the chapter of greedy (#1103)
* feat(kotlin): add kotlin code for dynamic programming.

* Update knapsack.kt

* feat(kotlin): add kotlin codes for graph.

* style(kotlin): reformatted the codes.

* feat(kotlin): add kotlin codes for the chapter of greedy.

* Update max_product_cutting.kt
2024-03-04 00:10:34 +08:00
a032d68c7c translation: Update the mindmap (#1100)
* Translated the mindmap

* Bug fixes and reducing the file size
2024-03-03 23:57:47 +08:00
6a728042fd Add kotlin code for the chapter of graph (#1102)
* feat(kotlin): add kotlin code for dynamic programming.

* Update knapsack.kt

* feat(kotlin): add kotlin codes for graph.

* style(kotlin): reformatted the codes.
2024-03-03 19:18:07 +08:00
5c1f43fefd Add kotlin code for dynamic programming (#1099)
* feat(kotlin): add kotlin code for dynamic programming.

* Update knapsack.kt
2024-03-03 15:14:26 +08:00
1db04577b5 translation: Update the figures for the chapter of array and linked list (#1082)
* Update the figures for the chapter of array and linked list

* Bug fixes and file size reduction
2024-02-28 18:49:18 +08:00
39c2b0335e translation: Update the figures in the chapter of preface and introduction (#1079)
* Translate the figures in the chapter of preface and introduction

* Update the figures

* Update the figure

* Bug fixes
2024-02-28 18:42:42 +08:00
7cdfa03e68 Add kotlin code for the chapter of divide and conquer (#1098)
* 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.

* feat(kotlin): add kotlin code for computational complexity.

* fix(kotlin): remove iteration folder.

* fix(kotlin): remove n_queens.kt file out of folder.

* fix(kotlin): remove some folders.

* style(kotlin): modified two chapters.

* feat(kotlin): add kotlin code for divide and conquer.

* Update build_tree.kt

* Update hanota.kt

* Delete codes/kotlin/chapter_backtracking directory

* Delete codes/kotlin/chapter_computational_complexity directory

* Delete codes/kotlin/chapter_divide_and_conquer directory

* feat(kotlin): add kotlin code for divide and conquer.

* Update hanota.kt
2024-02-28 01:25:38 +08:00
306dc019ef Add Kotlin code for computational complexity (#1090)
* 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.

* feat(kotlin): add kotlin code for computational complexity.

* fix(kotlin): remove iteration folder.

* fix(kotlin): remove n_queens.kt file out of folder.

* fix(kotlin): remove some folders.

* style(kotlin): modified two chapters.
2024-02-27 17:04:57 +08:00
92f82cbcca Update README 2024-02-25 01:44:11 +08:00
962f8f91f7 fix some bugs in c codes (#1089) 2024-02-23 01:34:49 +08:00
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
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
e9341c51b5 fix(go): record slice array result, fixed #1075 (#1087) 2024-02-18 18:37:07 +08:00
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
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
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
225d2ae314 Update index.md (#1069)
refined some sentences to make it sound more fluent.
2024-02-07 22:22:05 +08:00
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
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
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
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
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
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
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
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
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
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 fceeaf8fd67438d159e6727529d13c1d3a348f97.

* 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
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
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
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
e69f60c07c fix(linkedlist_queue.c): Remove redundant conditional judgments. (#1055) 2024-01-23 22:09:45 +08:00
504c6b0568 The 4th revision (#1060) 2024-01-23 22:08:53 +08:00
dbb2c07cb1 Redesign the landing page (#1059) 2024-01-23 22:06:15 +08:00