Commit graph

1888 commits

Author SHA1 Message Date
khoaxuantu
043085d0ea
fix: adapt missing ruby style guide (#1216) 2024-04-03 21:01:29 +08:00
cy-by-side
c435d177a1
Create chapter_computational_complexity/iteration.rb (#1207)
Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-03 15:51:20 +08:00
khoaxuantu
fd580a184a
feat: Add Ruby code - chapter "computational complexity" (#1212)
* feat: add ruby code - chapter computational complexity

* feat: add ruby code blocks
2024-04-03 05:10:25 +08:00
Yudong Jin
df83b869eb
Add the chapter of hello_algo (#1215)
* Add the chapter of hello_algo

* Remove the comment field from the landing page

* Update the link in the landing page

* Fix a typo
2024-04-03 05:06:11 +08:00
Yudong Jin
2b1a98fb61
Use underline format for the technical terms (#1213)
* Use underline format for the technical terms

* Bug fixes
2024-04-03 03:52:17 +08:00
Yudong Jin
06068927cd
Add the initial translation for the Graph chapter (#1211) 2024-04-02 18:52:34 +08:00
Yudong Jin
04ebee0308
Add the initial translation for the Heap chapter (#1210) 2024-04-02 18:50:31 +08:00
Yudong Jin
3b797d56af
translation: Add the initial translation for the tree chapter (#1208)
* Add the initial translation for the tree chapter

* Add intial translation of array_representation_of_tree.md

* Fix the code link of avl_tree
2024-04-02 17:02:03 +08:00
Yudong Jin
b3f100aff1
Bug fixes and improvements (#1205)
* Add Ruby code blocks to documents

* Remove Ruby code from en/docs

* Remove "center-table" class in index.md

* Add "data-toc-label" to handle the latex heading during the build process

* Use normal JD link instead.

* Bug fixes
2024-04-01 19:37:00 +08:00
khoaxuantu
5ce088de52
Fix inconsistent comments Ruby - chapter array and linked list (#1202)
* fix: inconsistent comments Ruby - chapter array and linked list

* fix: better Ruby code & comments
2024-03-31 15:58:35 +08:00
Yudong Jin
57bdfd6284
Add Ruby code blocks to the documents (#1200)
* Add Ruby code blocks to documents

* Remove Ruby code from en/docs
2024-03-31 03:57:11 +08:00
Yudong Jin
034ee65e9a
Fix bugs and harmonize the code comments (#1199)
* Fix the comment in array_deque.go

* Fix the comment in bucket_sort.c

* Translate the Java code comments to Chinese

* Bug fixes

* 二分查找 -> 二分搜尋

* Harmonize comments in `utils` between multiple programming languages
2024-03-31 03:06:41 +08:00
curtishd
cfe8281aee
Add kotlin code for chapter_stack_and_queue and chapter_tree (#1197)
* Add kotlin code block for chapter_hashing

* Add kotlin code block for chapter_heap.

* Add kotlin code block for chapter_stack_and_queue and chapter_tree

* fix indentation

* Update binary_tree.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-30 13:16:39 +08:00
khoaxuantu
85ca4cce43
feat: Add ruby code - chapter "array & linked list" (#1158)
* feat: add ruby code chapter array & linked list

- array.rb
- linked_list.rb
- list.rb
- my_list.rb

* feat: add ruby code blocks

* chore: fix convention
2024-03-30 13:10:46 +08:00
curtishd
e799513173
Add kotlin code block for chapter_heap (#1196)
* Add kotlin code block for chapter_hashing

* Add kotlin code block for chapter_heap.
2024-03-29 20:32:49 +08:00
curtishd
8a05edb604
Add kotlin code block for chapter_hashing (#1195) 2024-03-29 20:01:37 +08:00
curtishd
5474ffc1ae
Add kotlin code block for the chapter of data structure (#1190)
* Add kotlin code block for array.md and backtracking_algorithm.md.

* add kotlin code block for chapter_computational_complexity.

* Update space_complexity.md

* preview linked_list.md

* Update linked_list.md

* fill in the missing code blocks.

* Add kotlin code block for chapter_data_structure.
2024-03-29 15:41:01 +08:00
curtishd
2f505e7f38
Add kotlin code block for chapter_computational_complexity (#1187)
* Add kotlin code block for array.md and backtracking_algorithm.md.

* add kotlin code block for chapter_computational_complexity.

* Update space_complexity.md

* preview linked_list.md

* Update linked_list.md

* fill in the missing code blocks.
2024-03-28 17:08:39 +08:00
curtishd
16350b65e4
Add kotlin code block for array.md and backtracking_algorithm.md. (#1185) 2024-03-27 21:47:34 +08:00
rongyi
556af1624c
No need to match expand pop, just return it (#1154) 2024-03-27 01:29:43 +08:00
curtishd
82a7dc9dcc
Add kotlin code block for chapter array and linkedlist (#1179)
* add kotlin code block for chapter_array_and_linkedlist.

* modified comment.

* Update list.md

* Update linked_list.md

* fix some indentation.

* fix incorrect display
2024-03-27 01:12:30 +08:00
krahets
1c8359129f Add kotlin to gitattributes 2024-03-26 03:42:07 +08:00
curtishd
9c07ca99f3
Fix the comment in recursion.kt (#1177)
* feat(kotlin): add kotlin code for utils file.

* Update ListNode.kt

* Update PrintUtil.kt

* fix: add the header comment for linkedlist_stack class.

* fix(kotlin): fix the kotlin file name.

* delete blank line in main function

* add comment for class head.

* delete the old file.

* fix the created time

* delete blank line beneath files.

* keep tailRecur function consistent with other.

* Update recursion.kt

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-26 03:14:13 +08:00
Yudong Jin
43bb45bceb
Several bug fixes and improvements (#1178)
* Update pythontutor block with the latest code

* Move docs-en to en/docs

* Move mkdocs.yml and README to en folder

* Fix en/mkdocs.yml

* Update the landing page

* Fix the glossary

* Reduce the font size of the code block tabs

* Add Kotlin blocks to en/docs

* Fix the code link in en/.../deque.md

* Fix the EN README link
2024-03-26 02:49:26 +08:00
curtishd
42f48405ef
Fix all the incorrect comment in kotin files (#1176)
* feat(kotlin): add kotlin code for utils file.

* Update ListNode.kt

* Update PrintUtil.kt

* fix: add the header comment for linkedlist_stack class.

* fix(kotlin): fix the kotlin file name.

* delete blank line in main function

* add comment for class head.

* delete the old file.

* fix the created time

* delete blank line beneath files.

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-25 22:14:55 +08:00
curtishd
5ec5ef9af0
Add kotlin code for the utils file (#1175)
* feat(kotlin): add kotlin code for utils file.

* Update ListNode.kt

* Update PrintUtil.kt

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-25 19:15:40 +08:00
curtishd
5e77a64341
Add kotlin code for the chapter of tree (#1172)
* modified array.kt.

* feat(kotlin): add kotlin code for the chapter of stack and queue.

* modified array.kt

* modified comments.

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

* feat(kotlin): add kotlin code for the chapter of tree.
2024-03-25 16:22:17 +08:00
Yudong Jin
202450420d
Add the kotlin blocks to the documents (#1170) 2024-03-25 03:15:36 +08:00
Nan Lei
55db99ab18
Add return value for recur function of Python in space complexity (#1169)
* Add return value for recur function of Python in space complexity

* Update space_complexity.md

* Update space_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-25 01:53:21 +08:00
None
739ee24751
Fix toc for the webpage of the chapter of computational complexity (#1107)
* fix the math formula in TOC

* Update space_complexity.md

* Update time_complexity.md

* Update space_complexity.md

* Update time_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-23 21:04:14 +08:00
curtishd
6069cb89a7
Add kotlin code for the chapter of stack and queue (#1162)
* modified array.kt.

* feat(kotlin): add kotlin code for the chapter of stack and queue.

* modified array.kt

* modified comments.
2024-03-23 19:33:18 +08:00
Yudong Jin
3d3e16fcd7
Update terminology for traditional Chinese translation (#1165)
* Add the glossary in Traditional Chinese

* Update terminology.md

* Fix the term "演算法"

* Update the traditional Chinese terms

* Fix several terms.

* Add some terms for sc2tc

* Add 文件, 二叉搜索树
2024-03-23 02:19:47 +08:00
Yudong Jin
3ea91bda99
fix: Use int instead of float for the example code of log time complexity (#1164)
* Use int instead of float for the example code of log time complexity

* Bug fixes

* Bug fixes
2024-03-23 02:17:48 +08:00
Phoenix Xie
fc8473ccfe
translation: Update chapter_computational_complexity/iteration_and_recursion.md (#1074)
* Update iteration_and_recursion.md

* Update iteration_and_recursion.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-23 00:29:44 +08:00
nuomi1
7359a7cb4b
Review Swift codes (#1150)
* feat(swift): review for chapter_computational_complexity

* feat(swift): review for chapter_data_structure

* feat(swift): review for chapter_array_and_linkedlist

* feat(swift): review for chapter_stack_and_queue

* feat(swift): review for chapter_hashing

* feat(swift): review for chapter_tree

* feat(swift): add codes for heap article

* feat(swift): review for chapter_heap

* feat(swift): review for chapter_graph

* feat(swift): review for chapter_searching

* feat(swift): review for chapter_sorting

* feat(swift): review for chapter_divide_and_conquer

* feat(swift): review for chapter_backtracking

* feat(swift): review for chapter_dynamic_programming

* feat(swift): review for chapter_greedy

* feat(swift): review for utils

* feat(swift): update ci tool

* feat(swift): trailing closure

* feat(swift): array init

* feat(swift): map index
2024-03-20 21:15:39 +08:00
Nan Lei
300a781fab
Update code comment of quadratic in time_complexity (#1155) 2024-03-19 02:28:16 +08:00
Loong Loong
7a4a45977a
translation: Update chapter_stack_and_queue/queue.md (#1039)
* This commit mainly standardizes the terminology representing queue.

* optimization

* optimization

* optimization the translation with @https://github.com/QiLOL 's help

* fix a more "+"

* fix "used"

* Update queue.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-03-18 22:36:31 +08:00
curtishd
1845937c5a
Add kotlin code for the chapter of sorting (#1145)
* feat(kotlin): add kotlin code for chapter sorting.

* style(kotlin): fix some indent.

* refactor(kotlin): refactor quick_sort.kt files.

* style(kotlin): modified medianThree function.
2024-03-18 13:34:20 +08:00
Yudong Jin
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
rongyi
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
rongyi
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
curtishd
54ceef3443
feat(kotlin): add kotlin codes for the chapter of searching. (#1140) 2024-03-15 17:11:41 +08:00
sdshaoda
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
curtishd
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
Yudong Jin
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
Prime.X
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
Yudong Jin
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
curtishd
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
Spark
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
Yudong Jin
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